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.inFocusDisplaying(0) not working in iOs #157
Comments
I just read the doc again I saw: We exposed the inFocusDisplaying API of OneSignal (Android only). How can I not display the notification on iOS when the app is in Focus ? |
in your self.oneSignal = [[RCTOneSignal alloc] initWithLaunchOptions:launchOptions
appId:@"YOUR APP ID"
settings:@{kOSSettingsKeyInFocusDisplayOption : @(OSNotificationDisplayTypeNone), kOSSettingsKeyAutoPrompt : @YES}]; Sorry for the undocumented part in the module, you can find it here, in the official SDK docs: |
@jsappme @avishayil Hi, if i want to silent the notification on one particular app screen only not whole app, how do i do it? |
this now works on the latest SDK |
@avishayil I'm getting "Property 'oneSignal' not found on object of type 'AppDelegate *'", with that code, how would I properly define that property for app delegate and do I need to pass the property to onesignal back somehow? |
gives me on android, displayType: 0, and does not show the notification
But with iOS, it gives me, displayType: 1, it does show the notification when the app is isAppInFocus
The text was updated successfully, but these errors were encountered: