This repository was archived by the owner on Jan 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +0
-13
lines changed
android/src/main/java/com/dieam/reactnativepushnotification/modules Expand file tree Collapse file tree 3 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -329,10 +329,6 @@ Uses the [ShortcutBadger](https://github.com/leolin310148/ShortcutBadger) on And
329
329
## Sending Notification Data From Server
330
330
Same parameters as ` PushNotification.localNotification() `
331
331
332
- ## Android Only Methods
333
-
334
- ` PushNotification.subscribeToTopic(topic: string) ` Subscribe to a topic (works only with Firebase)
335
-
336
332
## iOS Only Methods
337
333
` PushNotification.checkPermissions(callback: Function) ` Check permissions
338
334
Original file line number Diff line number Diff line change @@ -117,11 +117,6 @@ public void requestPermissions(String senderID) {
117
117
reactContext .startService (GCMService );
118
118
}
119
119
120
- @ ReactMethod
121
- public void subscribeToTopic (String topic ) {
122
- FirebaseMessaging .getInstance ().subscribeToTopic (topic );
123
- }
124
-
125
120
@ ReactMethod
126
121
public void presentLocalNotification (ReadableMap details ) {
127
122
Bundle bundle = Arguments .toBundle (details );
Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ NotificationsComponent.prototype.requestPermissions = function(senderID: string)
30
30
RNPushNotification . requestPermissions ( senderID ) ;
31
31
} ;
32
32
33
- NotificationsComponent . prototype . subscribeToTopic = function ( topic : string ) {
34
- RNPushNotification . subscribeToTopic ( topic ) ;
35
- } ;
36
-
37
33
NotificationsComponent . prototype . cancelLocalNotifications = function ( details : Object ) {
38
34
RNPushNotification . cancelLocalNotifications ( details ) ;
39
35
} ;
You can’t perform that action at this time.
0 commit comments