-
-
Notifications
You must be signed in to change notification settings - Fork 121
bug: Push Notification not receiving in IOS when APP is in background #858
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
Please share the code you use to send the push notification. Please also share a screen recording which shows how you receive the push notification in foreground but not in the background. |
Dear Robin , PFA for notification received in foreground . For sending push notification from backend server
payload => { |
This issue has been labeled as Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so we can debug the issue. If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for us to reproduce the issue. |
Dear Robin Please find below GitHub link to address the issue . https://github.com/rajendra16/Push-Notification-Vanillajs-Capacitor7 |
@rajendra16 This example app does not even have the iOS platform. |
Dear Robin , Kindly follow given steps : npm installnpx cap add iosnpm run buildnpx cap syncnpx cap copyAfter this steps open xcode and launch this workspace , Make build and verify the issue . |
@rajendra16 You need to configure the iOS platform correctly to receive push notifications in the background. I cannot find any potential issues in your app when doing this myself. Therefore, I am closing this issue as you have not provided a fully reproducible example. |
Plugin(s)
Version
7.1.0
Platform(s)
Current behavior
In IOS push notification not receiving in background .
In foreground it is receiving.
Expected behavior
Push Notification in background should received in IOS
Reproduction
https://github.com/rajendra16/Push-Notification
Steps to reproduce
Do dependencies Installation using : npm install
Add IOS Platform : ionic capacitor add ios
Start Build Process : ionic build
Sync : npx cap sync
copy : npx cap copy
Follow these commands and create build using xcode
Other information
No response
Capacitor doctor
Latest Dependencies:
@capacitor/cli: 7.2.0
@capacitor/core: 7.2.0
@capacitor/android: 7.2.0
@capacitor/ios: 7.2.0
Installed Dependencies:
@capacitor/cli: 7.2.0
@capacitor/android: 7.2.0
@capacitor/core: 7.2.0
@capacitor/ios: 7.2.0
Before submitting
The text was updated successfully, but these errors were encountered: