Skip to content

Commit f780158

Browse files
Site changes [skip-ci]
1 parent 064ae3d commit f780158

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

extension-push/index.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ toc:
1313
- Register your app with Firebase
1414
- Add a Firebase configuration file
1515
- Local push notifications
16+
- Local notifications on Android
1617
- Inspecting scheduled notifications
1718
- Source code
18-
- API reference
1919
---
2020

2121
# Defold Push notification documentation
@@ -243,6 +243,11 @@ priority
243243
Unless specified, the max priority level is used.
244244

245245

246+
### Local notifications on Android
247+
248+
Android 13 (API level 33) and higher supports a [runtime permission for sending notifications](https://developer.android.com/develop/ui/views/notifications/notification-permission) from an app: POST_NOTIFICATIONS. The extension will automatically add the permission to the AndroidManifest. Starting in Android 13 app notifications are off by default and your app must wait to send notifications until after you request the new permission and the user grants that permission to your app. You can use the [Permission extension](https://github.com/defold/extension-permissions) to check if the `POST_NOTIFICATIONS` permission has been granted or if you should prompt the user for permission before scheduling a local notification.
249+
250+
246251
## Inspecting scheduled notifications
247252
The API provides two functions to inspect what is currently scheduled.
248253

@@ -304,6 +309,5 @@ DEBUG:SCRIPT:
304309
## Source code
305310

306311
The source code is available on [GitHub](https://github.com/defold/extension-push)
307-
308-
309-
## API reference[API Reference - push](/extension-push/push_api)
312+
## API reference
313+
[API Reference - push](/extension-push/push_api)

0 commit comments

Comments
 (0)