You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extension-push/index.md
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,9 @@ toc:
13
13
- Register your app with Firebase
14
14
- Add a Firebase configuration file
15
15
- Local push notifications
16
+
- Local notifications on Android
16
17
- Inspecting scheduled notifications
17
18
- Source code
18
-
- API reference
19
19
---
20
20
21
21
# Defold Push notification documentation
@@ -243,6 +243,11 @@ priority
243
243
Unless specified, the max priority level is used.
244
244
245
245
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
+
246
251
## Inspecting scheduled notifications
247
252
The API provides two functions to inspect what is currently scheduled.
248
253
@@ -304,6 +309,5 @@ DEBUG:SCRIPT:
304
309
## Source code
305
310
306
311
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)
0 commit comments