From e329851c449f7ee29ab0c440959de8fdbbd4de65 Mon Sep 17 00:00:00 2001 From: Chris Bianca Date: Mon, 5 Feb 2018 18:18:54 +0000 Subject: [PATCH] [ios] Android hasPermission method --- .../io/invertase/firebase/messaging/RNFirebaseMessaging.java | 5 +++++ ios/RNFirebase/messaging/RNFirebaseMessaging.m | 1 + 2 files changed, 6 insertions(+) diff --git a/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java b/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java index 5788201f..f81b79f9 100644 --- a/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java +++ b/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java @@ -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")) { diff --git a/ios/RNFirebase/messaging/RNFirebaseMessaging.m b/ios/RNFirebase/messaging/RNFirebaseMessaging.m index 5626b407..5d1a234d 100644 --- a/ios/RNFirebase/messaging/RNFirebaseMessaging.m +++ b/ios/RNFirebase/messaging/RNFirebaseMessaging.m @@ -400,3 +400,4 @@ RCT_EXPORT_METHOD(unsubscribeFromTopic: (NSString*) topic) { @implementation RNFirebaseMessaging @end #endif +