content_available does not work to trigger data-only notifications in ios #7219
nick-burczyk-cs
started this conversation in
General
Replies: 1 comment
-
Try it on reel device, not simulator |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Disclaimer: This is very similar to several posts, but I have been through all of them and the solutions given did not work for me.
Previously, I was using native push notifications and react-native-firebase for handling, and everything was working perfectly. I added Notifee and switched to data-only messages, and now iOS is throwing/triggering nothing. It is like the messages are not arriving.
JSON Payload
Implementation in
useNotifications
hookImplimentation in
index.js
Fixes attempted
content_available
,content-available
, andcontentAvailable
in the payload.{ apns-push-type: background, apns-priority: 5, apns-topic: <DOMAIN_NAME> }
priority: true
from the payload (per a SO suggestion)Package versions
react-native
: 0.64.2@notifee/react-native
: 7.8.0,@react-native-firebase/messaging
: 15.4.0Conclusion
Discerning the device type from the backend and adjusting the payload is obviously not an option, but exploring that is almost sounding attractive 😂.
As stated, I have gone through every single similar issue with no success.
Thanks for any help you are able to give.
Beta Was this translation helpful? Give feedback.
All reactions