Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit ce89207

Browse files
author
Axel Vencatareddy
committed
Remove subscribeToTopic method
1 parent c004adc commit ce89207

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,6 @@ Uses the [ShortcutBadger](https://github.com/leolin310148/ShortcutBadger) on And
329329
## Sending Notification Data From Server
330330
Same parameters as `PushNotification.localNotification()`
331331

332-
## Android Only Methods
333-
334-
`PushNotification.subscribeToTopic(topic: string)` Subscribe to a topic (works only with Firebase)
335-
336332
## iOS Only Methods
337333
`PushNotification.checkPermissions(callback: Function)` Check permissions
338334

android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotification.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,6 @@ public void requestPermissions(String senderID) {
117117
reactContext.startService(GCMService);
118118
}
119119

120-
@ReactMethod
121-
public void subscribeToTopic(String topic) {
122-
FirebaseMessaging.getInstance().subscribeToTopic(topic);
123-
}
124-
125120
@ReactMethod
126121
public void presentLocalNotification(ReadableMap details) {
127122
Bundle bundle = Arguments.toBundle(details);

component/index.android.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ NotificationsComponent.prototype.requestPermissions = function(senderID: string)
3030
RNPushNotification.requestPermissions(senderID);
3131
};
3232

33-
NotificationsComponent.prototype.subscribeToTopic = function(topic: string) {
34-
RNPushNotification.subscribeToTopic(topic);
35-
};
36-
3733
NotificationsComponent.prototype.cancelLocalNotifications = function(details: Object) {
3834
RNPushNotification.cancelLocalNotifications(details);
3935
};

0 commit comments

Comments
 (0)