mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-28 12:15:44 +08:00
[ios] Android hasPermission method
This commit is contained in:
@@ -92,6 +92,11 @@ public class RNFirebaseMessaging extends ReactContextBaseJavaModule implements A
|
||||
}
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void hasPermission(Promise promise) {
|
||||
promise.resolve(true);
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void sendMessage(ReadableMap messageMap, Promise promise) {
|
||||
if (!messageMap.hasKey("to")) {
|
||||
|
||||
@@ -400,3 +400,4 @@ RCT_EXPORT_METHOD(unsubscribeFromTopic: (NSString*) topic) {
|
||||
@implementation RNFirebaseMessaging
|
||||
@end
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user