chemerisuk / cordova-plugin-firebase-messaging

Cordova plugin for Firebase Cloud Messaging
MIT License
164 stars 160 forks source link

ios onMessage and onBackground content_available parameter fix #203

Closed tevla closed 2 years ago

tevla commented 2 years ago

The parameter for ios called content_available was misspelled as content-available and the value is a boolean not an integer. Firebase endpoint returns an error when it is not spelled correctly.

chemerisuk commented 2 years ago

@tevla I am referencing to the value mentioned in Apple docs https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_background_updates_to_your_app#2980037.

Firebase Admin SDK uses boolean value instead that makes things to be more confusing.