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

handle registerNotificationReceivedBackground on IOS #836

Closed
mrjaxi opened this issue Mar 9, 2022 · 6 comments
Closed

handle registerNotificationReceivedBackground on IOS #836

mrjaxi opened this issue Mar 9, 2022 · 6 comments

Comments

@mrjaxi
Copy link

mrjaxi commented Mar 9, 2022

I cant get data from push when app in background using registerNotificationReceivedBackground on IOS, but i fix this on Android by adding key "pushNotification": true in my request on GoRush server. How can I handle registerNotificationReceivedBackground on IOS?

@BooBumbleBeeLion
Copy link

i have the same problem with registerNotificationReceivedBackground on ios

@DanielEliraz
Copy link
Collaborator

Answered in #834

@mrjaxi
Copy link
Author

mrjaxi commented Mar 9, 2022

Answered in #834

Yeah, i try this, but it doesn't work

@DanielEliraz
Copy link
Collaborator

@mrjaxi , have you done all the things mentioned in https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_background_updates_to_your_app?language=objc ?
including the headers in the post request to APNS.
If yes, there is this thread: https://developer.apple.com/forums/thread/128794 which seems connected

@nguyendinhdoan
Copy link

I added "content-available" : 1 to the payload and it worked.

@chenweigh
Copy link

After Testing, this callback is only triggered when silently pushed.

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

5 participants