-
Notifications
You must be signed in to change notification settings - Fork 196
Description
What happened?
[Bug]: Push notification not working in IOS app - working fine in android app - Capacitor + React Project
i followed the https://documentation.onesignal.com/docs/ionic-capacitor-cordova-sdk-setup
and setup onesignal-cordova-plugin for push notifications in android and ios app created using capacitor in reactJs project
android push notification working fine, but ios push notifications are not working properly.
in one-signal dashboard in subscriptions page i can see that ios devices are getting registered for "push type" device (same what android devices are getting registered as) and with status subscribed
and when i added android devices as "test device" and send push notification i receive that in android physical device as expected
i repeated the same process for "subscribed" ios physical device but there i'm not receving any push notifications in physical ios device "Iphone X"
here's the package.json version of capacitor related packages in my project
"dependencies"
"@capacitor-community/apple-sign-in": "^7.0.1",
"@capacitor/android": "^7.2.0",
"@capacitor/app": "7.0.1",
"@capacitor/browser": "^7.0.1",
"@capacitor/clipboard": "^7.0.1",
"@capacitor/core": "7.2.0",
"@capacitor/device": "^7.0.1",
"@capacitor/dialog": "^7.0.1",
"@capacitor/geolocation": "^7.1.2",
"@capacitor/haptics": "7.0.1",
"@capacitor/ios": "^7.2.0",
"@capacitor/keyboard": "7.0.1",
"@capacitor/preferences": "^7.0.1",
"@capacitor/status-bar": "7.0.1",
"@capacitor/toast": "^7.0.1",
"@codetrix-studio/capacitor-google-auth": "^3.3.6",
"onesignal-cordova-plugin": "^5.2.13",
"devDependencies"
"@capacitor/assets": "^3.0.5",
"@capacitor/cli": "^7.2.0",
"@trapezedev/configure": "^7.1.3",
Steps to reproduce?
1) create a new ionic project (to have capacitor setup in it) with react template blank
2) make sure to have packages at current latest versions (capacitor packages)
3) add onesignal-cordova-plugin
4) add android and ios project
5) install the build app in android and ios physical device and testWhat did you expect to happen?
to receive push notifications in ios device as android device, because it's status is showing as "subscribed" in subscriptions page same as android devices
OneSignal Cordova SDK version
^5.2.13
Which platform(s) are affected?
- iOS
- Android
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct