You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to FirebaseMessaging v22.0.0, we used to use FirebaseInstanceId.getInstance().getToken(senderID, FirebaseMessaging.INSTANCE_ID_SCOPE); to fetch token from passing the sender id. However post v22.0.0 to fetch token we have started using FirebaseMessaging.getInstance().getToken(). Is there any way where we could fetch token by providing the sender id to some public method of getToken() by passing sender id as a parameter?
How would you use it?
We're developing an SDK which enables the clients to add any other secondary project by specifying the sender id using sdk's API's.Before this v22.0.0 change we used to fetch token by FirebaseInstanceId.getInstance().getToken(senderID, FirebaseMessaging.INSTANCE_ID_SCOPE);. Alternatively, post v22.0.0 change we've tried using the FirebaseOptions.Builder() approach, however for this the clients has to specify the project id, application id and api key which is cumbersome and prone to mismatch of credentials most of the time.It'd be great if you guys can let us know if there is any other alternative to fetch tokens from passing sender id apart from FirebaseOptions.Builder() approach.
The text was updated successfully, but these errors were encountered:
Creating a new FirebaseApp instance with FirebaseOptions for the project is the current supported way of handling multiple Firebase projects, so there are no plans to support FirebaseMessaging.getToken() using a specified sender ID at this time.
What feature would you like to see?
Prior to FirebaseMessaging v22.0.0, we used to use
FirebaseInstanceId.getInstance().getToken(senderID, FirebaseMessaging.INSTANCE_ID_SCOPE);
to fetch token from passing the sender id. However post v22.0.0 to fetch token we have started usingFirebaseMessaging.getInstance().getToken()
. Is there any way where we could fetch token by providing the sender id to some public method ofgetToken()
by passing sender id as a parameter?How would you use it?
We're developing an SDK which enables the clients to add any other secondary project by specifying the sender id using sdk's API's.Before this v22.0.0 change we used to fetch token by
FirebaseInstanceId.getInstance().getToken(senderID, FirebaseMessaging.INSTANCE_ID_SCOPE);
. Alternatively, post v22.0.0 change we've tried using theFirebaseOptions.Builder()
approach, however for this the clients has to specify the project id, application id and api key which is cumbersome and prone to mismatch of credentials most of the time.It'd be great if you guys can let us know if there is any other alternative to fetch tokens from passing sender id apart fromFirebaseOptions.Builder()
approach.The text was updated successfully, but these errors were encountered: