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
OneSignal Background Notification Issue in iOS #1435
Comments
Hi @shamique Thanks for your patience! How are you sending these notifications? If you are sending the notification with Let us know if that helps! |
I am experiencing exactly the same issue as the OP, and my native code is identical to that posted in the OP. The iOS Notification Service Extension Module sends notification events to the javascript in a build installed directly from xcode, but does not when a beta build is released via TestFlight. Here's some more detail
I'm using fastlane to deploy the beta build. This is the relevant logic in my fastfile.
|
@shamique Did you ever resolve this issue? @jennantilla Sorry to ping you again, but any other ideas? |
Hi @angusmcleod. No I couldn't resolve this issue. Instead, I downgraded the OneSignal library back to v3.4.2 since it's support background notification by default. |
@kesheshyan Is downgrading the only way here? |
Any update on this? |
Guys, @angusmcleod @shamique, any updates here? |
Hi @eduardojigub, I couldn't resolve the issue. My last resort was to downgrade the One Signal version to v3.4.2, in which it supports background notification. |
I followed this guide to setup the OneSignal background notification in My react native App: https://documentation.onesignal.com/docs/rn-android-native-module-setup-for-notification-service-extension#ios-notification-service-extension-module
Background notification is working as expected when I installed the App directly to My device through Xcode. But when I archive the build and install it from TestFlight, background notification doesn't work. Unless
emitNotificationEvent
event I added is not get triggered, even though the push notification is received.When I trace the issue with Archived Build in Xcode (Using device console), noticed that
_instance
is null inNotificationExtensionModule.m
. Anyone experienced similar issue or any idea what could be the reason ?Note
Adding the code snippet for further understanding of My issue:
AppDelegate.h
AppDelegate.m
NotificationServiceExtensionModule.h
NotificationServiceExtensionModule.m
The text was updated successfully, but these errors were encountered: