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
{{ message }}
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
// ANDROID ONLY: GCM Sender ID (optional - not required for local notifications, but is need to receive remote push notifications)
151
-
senderID:"YOUR GCM SENDER ID",
162
+
// ANDROID ONLY: GCM or FCM Sender ID (product_number) (optional - not required for local notifications, but is need to receive remote push notifications)
163
+
senderID:"YOUR GCM (OR FCM) SENDER ID",
152
164
153
165
// IOS ONLY (optional): default: all - Permissions to register.
154
166
permissions: {
@@ -293,7 +305,7 @@ Property `repeatType` could be one of `week`, `day`, `hour`, `minute`, `time`. I
293
305
Two things are required to setup notification actions.
294
306
295
307
### 1) Specify notification actions for a notification
296
-
This is done by specifying an `actions` parameters while configuring the local notification. This is an array of strings where each string is a notificaiton action that will be presented with the notification.
308
+
This is done by specifying an `actions` parameters while configuring the local notification. This is an array of strings where each string is a notification action that will be presented with the notification.
297
309
298
310
For e.g. `actions: '["Accept", "Reject"]' // Must be in string format`
299
311
@@ -334,6 +346,10 @@ Uses the [ShortcutBadger](https://github.com/leolin310148/ShortcutBadger) on And
334
346
## Sending Notification Data From Server
335
347
Same parameters as `PushNotification.localNotification()`
336
348
349
+
## Android Only Methods
350
+
351
+
`PushNotification.subscribeToTopic(topic: string)` Subscribe to a topic (works only with Firebase)
Copy file name to clipboardExpand all lines: android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationListenerService.java
0 commit comments