-
Notifications
You must be signed in to change notification settings - Fork 379
Use RNFirebase with OneSignal - iOS #958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@rgomezp @Nightsd01 could you give me some help this? OneSignal is not providing a way to make local notifications and postMessage is not an option for us (it has to be a reminder, locally on the device) No matter what I try I don't manage to make this work - spent already a few days only on this- and my objC is pretty rusty :( |
fwiw I tried also https://github.com/react-native-community/react-native-push-notification-ios . |
@rborn OneSignal does swizzle the Before I dig into the code to far RNFirebase is this RNFirebase: 5.6.0? I looked at the setup guide for When you setup the |
@jkasten2 thanks, yes it's 5.6.0 (didn't move to 6 as it doesn't have notifications) react-native-push-notification-ios also has issues to get the initialNotification but I found a workaround (they seem not wait for RN to initialise so the info is lost) |
@jkasten2 small update, I managed to do "something" with react-native-push-notification (that mixes react-native-push-notification-ios and own android code ) but it's not ideal as they have both bugs and/or are old modules and I need to workaround many things. It also means I need to add another module to the app which adds weight. I tried to replicate what I did with the RNFirebase v5.6.0 module but I only have very limited results. It would be amazing to manage to make it work (even if in time will become obsolete as v6 won't have notifications soon) and have it in one place only. Maybe you could take a look ? Ideally I think OneSignal could implement localNotifications, even if it's not the scope but would give a lot of value to the devs and way less Github issues for you guys 😊 I'm not a native guy but I can help with testing in case you decide to do something about this 🤗 |
Thanks for your suggestion @rborn . We will definitely take your suggestion into consideration. Can you provide more details regarding the "limited results" you are seeing? What behavior is occurring? Edit: also, please upvote this issue with React Native |
@rgomezp hi, thanks for the reply |
Howdy @rborn, |
@rgomezp Ok, thank you. What about the local notifications directly from OneSignal, any plans for this? |
Howdy @rborn, |
Description:
I am trying to use RNFirebase local scheduled notification in the same time with remote notifications from OneSignal.
The issue is that while the local scheduled notification is displayed I don't receive any callback event. This only happens on iOS, on android it works so far.
I tried everything I could (my objC-fu is not as good) but I could not manage to make it work.
At some point I added [[UNUserNotificationCenter currentNotificationCenter] setDelegate:self]; and onNotificationOpened started to trigger however OneSignal stopped to work :(
I also tried to disable swizzling in Firebase but it made no difference.
Any help or idea would be appreciated, I'm kind of stuck here and don't know how to fix this. Thank you 😻
Environment
OneSignal React-Native SDK : 3.6.5
RNFirebase: 5.6.0
The text was updated successfully, but these errors were encountered: