[ios] Android hasPermission method

This commit is contained in:
Chris Bianca 2018-02-05 18:18:54 +00:00
parent b5b02ed84d
commit e329851c44
2 changed files with 6 additions and 0 deletions

View File

@ -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")) {

View File

@ -400,3 +400,4 @@ RCT_EXPORT_METHOD(unsubscribeFromTopic: (NSString*) topic) {
@implementation RNFirebaseMessaging
@end
#endif