Tokens being generated after ID delete FCM iOS
up vote
2
down vote
favorite
I'm trying to delete FCM tokens when a user logs out.
I have set FirebaseMessagingAutoInitEnabled = NO
in my info.plist
When I run :
instance.deleteID { (error) in
debugPrint("AFTER Token :- (Messaging.messaging().fcmToken)")
}
The print out is nil, as I would expect, but then a few seconds the delegate method didReceiveRegistrationToken
fires off, and I have a new token again.
I want to explicitly call to delete or generate tokens.
I know the default behavior is to regenerate a new token when an ID is deleted, but with "autoInit" disabled, it is my understanding that tokens should no longer be automatically generated.
How can I stop generating tokens after deleting my FCM Instance?
ios swift firebase firebase-cloud-messaging
add a comment |
up vote
2
down vote
favorite
I'm trying to delete FCM tokens when a user logs out.
I have set FirebaseMessagingAutoInitEnabled = NO
in my info.plist
When I run :
instance.deleteID { (error) in
debugPrint("AFTER Token :- (Messaging.messaging().fcmToken)")
}
The print out is nil, as I would expect, but then a few seconds the delegate method didReceiveRegistrationToken
fires off, and I have a new token again.
I want to explicitly call to delete or generate tokens.
I know the default behavior is to regenerate a new token when an ID is deleted, but with "autoInit" disabled, it is my understanding that tokens should no longer be automatically generated.
How can I stop generating tokens after deleting my FCM Instance?
ios swift firebase firebase-cloud-messaging
Hmmm... I've never done this myself, but from reading the docs what you did should work. Can you show precisely what you've put in yourInfo.plist
?
– Frank van Puffelen
12 hours ago
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I'm trying to delete FCM tokens when a user logs out.
I have set FirebaseMessagingAutoInitEnabled = NO
in my info.plist
When I run :
instance.deleteID { (error) in
debugPrint("AFTER Token :- (Messaging.messaging().fcmToken)")
}
The print out is nil, as I would expect, but then a few seconds the delegate method didReceiveRegistrationToken
fires off, and I have a new token again.
I want to explicitly call to delete or generate tokens.
I know the default behavior is to regenerate a new token when an ID is deleted, but with "autoInit" disabled, it is my understanding that tokens should no longer be automatically generated.
How can I stop generating tokens after deleting my FCM Instance?
ios swift firebase firebase-cloud-messaging
I'm trying to delete FCM tokens when a user logs out.
I have set FirebaseMessagingAutoInitEnabled = NO
in my info.plist
When I run :
instance.deleteID { (error) in
debugPrint("AFTER Token :- (Messaging.messaging().fcmToken)")
}
The print out is nil, as I would expect, but then a few seconds the delegate method didReceiveRegistrationToken
fires off, and I have a new token again.
I want to explicitly call to delete or generate tokens.
I know the default behavior is to regenerate a new token when an ID is deleted, but with "autoInit" disabled, it is my understanding that tokens should no longer be automatically generated.
How can I stop generating tokens after deleting my FCM Instance?
ios swift firebase firebase-cloud-messaging
ios swift firebase firebase-cloud-messaging
edited 7 hours ago
Kuldeep
2,42131434
2,42131434
asked 16 hours ago
Nicole H
1,0512718
1,0512718
Hmmm... I've never done this myself, but from reading the docs what you did should work. Can you show precisely what you've put in yourInfo.plist
?
– Frank van Puffelen
12 hours ago
add a comment |
Hmmm... I've never done this myself, but from reading the docs what you did should work. Can you show precisely what you've put in yourInfo.plist
?
– Frank van Puffelen
12 hours ago
Hmmm... I've never done this myself, but from reading the docs what you did should work. Can you show precisely what you've put in your
Info.plist
?– Frank van Puffelen
12 hours ago
Hmmm... I've never done this myself, but from reading the docs what you did should work. Can you show precisely what you've put in your
Info.plist
?– Frank van Puffelen
12 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53366635%2ftokens-being-generated-after-id-delete-fcm-ios%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Hmmm... I've never done this myself, but from reading the docs what you did should work. Can you show precisely what you've put in your
Info.plist
?– Frank van Puffelen
12 hours ago