Commit 306b5f98 authored by Krystof Celba's avatar Krystof Celba

Add check if it is iOS to setNotificationCategories

parent c05a1750
...@@ -195,7 +195,9 @@ FCM.send = (senderId, payload) => { ...@@ -195,7 +195,9 @@ FCM.send = (senderId, payload) => {
}; };
FCM.setNotificationCategories = (categories) => { FCM.setNotificationCategories = (categories) => {
RNFIRMessaging.setNotificationCategories(categories); if (Platform.OS === 'ios') {
RNFIRMessaging.setNotificationCategories(categories);
}
} }
export default FCM; export default FCM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment