I've just uploaded my app to Play Store with a new feature which involves sending FCM notifications from one device to other devices which also have the app. Basically one device reads information from a web server and then tells the other devices so they don't have to bother the server.
I've adapted the legacy HTTP version described here FirebaseNotifications - Push messages / Firebase Cloud Messaging (FCM) - but placing the sending code inside my app. It works as intended.
However, PlayStore gives an error "Your app contains exposed Firebase Cloud Messaging (FCM) server keys." and gives a deadline of 21 January next year to update to the HTTP V1 API for FCM.
OK, so I've started out using Oauth2 to get the required access tokens, with scope = "https://www.googleapis.com/auth/firebase.messaging" - but now when my app attempts to get a token it opens a browser window to have the user enter an email address to log in to Google... which is not good. and now I'm completely confused.
Has anyone else gone down this road?
I've adapted the legacy HTTP version described here FirebaseNotifications - Push messages / Firebase Cloud Messaging (FCM) - but placing the sending code inside my app. It works as intended.
However, PlayStore gives an error "Your app contains exposed Firebase Cloud Messaging (FCM) server keys." and gives a deadline of 21 January next year to update to the HTTP V1 API for FCM.
OK, so I've started out using Oauth2 to get the required access tokens, with scope = "https://www.googleapis.com/auth/firebase.messaging" - but now when my app attempts to get a token it opens a browser window to have the user enter an email address to log in to Google... which is not good. and now I'm completely confused.
Has anyone else gone down this road?