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)
153
-
senderID:"YOUR GCM SENDER ID",
164
+
// ANDROID ONLY: GCM or FCM Sender ID (product_number) (optional - not required for local notifications, but is need to receive remote push notifications)
165
+
senderID:"YOUR GCM (OR FCM) SENDER ID",
154
166
155
167
// IOS ONLY (optional): default: all - Permissions to register.
156
168
permissions: {
@@ -295,7 +307,7 @@ Property `repeatType` could be one of `week`, `day`, `hour`, `minute`, `time`. I
295
307
Two things are required to setup notification actions.
296
308
297
309
### 1) Specify notification actions for a notification
298
-
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.
310
+
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.
299
311
300
312
For e.g. `actions: '["Accept", "Reject"]' // Must be in string format`
301
313
@@ -336,6 +348,10 @@ Uses the [ShortcutBadger](https://github.com/leolin310148/ShortcutBadger) on And
336
348
## Sending Notification Data From Server
337
349
Same parameters as `PushNotification.localNotification()`
338
350
351
+
## Android Only Methods
352
+
353
+
`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