Open ArchanaSharma95 opened 3 years ago
@ArchanaSharma95 were you able to solve this? I'm having the same problem.
I'm also getting same issue. For me remote notifications are not working but local notifications are working
Same here. I have added certificates to firebase - development, and production. Local and scheduled notifications working fine. Remote on android also works. Only ios is silent codebase here https://github.com/Kamill90/RoadTripApp-RN
I guess you need to complete these additional steps for iOS
me too,IOS Remote not work,android is Ok , i do complete these additional steps for iOS. help!
my Project https://github.com/qpooqp777/bhctest01
plz help,thx.
@qpooqp777 you need to complete these additional steps for notifications to work on iOS https://rnfirebase.io/messaging/usage/ios-setup
Also sometimes notifications sent from firebase dashboard doesn't appear. Try sending notifications from postman https://firebase.google.com/docs/cloud-messaging/http-server-ref
@rawatnaresh thanks.I reused RN-FCM, getFCMtoken, but not using apsnToken, I can receive messages normally.
@qpooqp777 can you please share the fullcode to get token using fcm? do we need to initialse firebase core package??
@qpooqp777, @aravi365, did you guys find the solution for this? how did you do it?
I have update my react native firebase to v6 and used this package to show notification on iOS. But I am not receiving notification in any of the state: foreground, background and when app is in closed state.
This is my AppDelegate.h file::
AppDelegate.m file::
After this inside my App.js file I called this function inside constructor::
NotificationService.getInstance().initializeNotificationServiceForIOS();
I have created one service file where I have written the notification logic for android and iOS. Push notifications working fine on android but not getting in case of iOS. This is a code inside my service file for iOS.
I have added console inside the "onRemoteNotification" and "onLocalNotification" but nothing happened after sending notification. Also I rechecked the apns certificate and other setting on firebase, this is completed still i am not getting any test sms from firebase and also on any event while sending notification remotely.
Please help and suggest something because I stuck here.