fixing wrong initial push registrar selection
This commit is contained in:
parent
fdd1ca61e8
commit
ee3d41a741
|
@ -55,7 +55,7 @@ class PushTokenRegistrars(
|
|||
}
|
||||
|
||||
override suspend fun registerCurrentToken() {
|
||||
when (selection) {
|
||||
when (currentSelection()) {
|
||||
FIREBASE_OPTION -> messagingPushTokenRegistrar.registerCurrentToken()
|
||||
NONE -> {
|
||||
// do nothing
|
||||
|
@ -75,6 +75,10 @@ class PushTokenRegistrars(
|
|||
}
|
||||
}
|
||||
|
||||
null -> {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
else -> unifiedPushRegistrar.unregister()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue