Skip to content
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

[Bug]: React native - Push notifications are not received in iOS when app is running ( Foreground ) #1604

Closed
2 of 3 tasks
vaibhav-toddleapp opened this issue Nov 21, 2023 · 2 comments

Comments

@vaibhav-toddleapp
Copy link

vaibhav-toddleapp commented Nov 21, 2023

What happened?

Push notifications are not showing up when app is running, there is no alert / no banner in notification center of iOS. works fine when app is in background or not in the memory ( killed ).

Observed this issue suddenly. please verify for iOS 15 or 15+ devices.

Libraries:

"react-native-onesignal": "4.4.1"

PodFile:

target 'OneSignalNotificationServiceExtension' do
    pod 'OneSignalXCFramework', '>= 3.0', '< 4.0'
  end

Steps to reproduce?

1. Setup onesignal react native SDK
2. Run app in iOS physical device
3. trigger notification when app is running ( in foreground )

What did you expect to happen?

Should show alert / banner in notification center even when app is running.

React Native OneSignal SDK version

4.4.1

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jennantilla
Copy link
Contributor

Hi @vaibhav-toddleapp! Would you be able to share the log from your device reproducing this behavior? Also, we have a new major release that offers many improvements and enhancements that you're encouraged to check out! See the migration guide here.

@jennantilla
Copy link
Contributor

Closing due to no response. @vaibhav-toddleapp if you are still having issues please let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants