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
The documentation here mentions using a FirebaseMessagingService for updating the push targets for messaging.
However it uses this logic -
classMessagingService : FirebaseMessagingService() {
companionobject {
var account:Account?=null
}
overridefunonNewToken(token:String) {
// get token, save to sharedPreferences.// check if account is nullif (account ==null) {
return
}
// update push target
}
}
The default value is null, then never initialised (as per the documentation)
The check would always return true & the push target will not be updated
Note: The example repository properly manages this, however the usage of Account variable looks unrelated & incomplete on documentation.
Also, there is a mention of targetId which I do not think is something used by the SDK internally.
It is not saved in the SharedPreferences the first time the token is retrieved but only managed in the above mentioned Service. Also Its better to provide a small explanation about this as well.
馃憖 Have you spent some time to check if this issue has been raised before?
馃挱 Description
The documentation here mentions using a
FirebaseMessagingService
for updating the push targets for messaging.However it uses this logic -
Note: The example repository properly manages this, however the usage of
Account
variable looks unrelated & incomplete on documentation.Also, there is a mention of
targetId
which I do not think is something used by the SDK internally.It is not saved in the
SharedPreferences
the first time the token is retrieved but only managed in the above mentionedService
. Also Its better to provide a small explanation about this as well.馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: