From 306b5f980f8055135f244062a19688b394f9d2eb Mon Sep 17 00:00:00 2001 From: Krystof Celba Date: Mon, 5 Feb 2018 09:36:29 +0100 Subject: [PATCH] Add check if it is iOS to setNotificationCategories --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 74a3bb8..7de6a6e 100644 --- a/index.js +++ b/index.js @@ -195,7 +195,9 @@ FCM.send = (senderId, payload) => { }; FCM.setNotificationCategories = (categories) => { - RNFIRMessaging.setNotificationCategories(categories); + if (Platform.OS === 'ios') { + RNFIRMessaging.setNotificationCategories(categories); + } } export default FCM; -- 2.26.2