Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After transferring of app, all push tokens in FCM are invalid and users have to reinstall app in order for push to work #2934

Closed
JakobMaaloe opened this issue May 3, 2019 · 14 comments
Assignees

Comments

@JakobMaaloe
Copy link

JakobMaaloe commented May 3, 2019

[REQUIRED] Step 2: Describe your environment
IOS app & Firebase Console

[REQUIRED] Step 3: Describe the problem

We are facing the same problem as described in issue 2125

We have just tried the following:

  1. Reinstall the app on a device
  2. Push message from our server to the FCM token -> The user receives the message
  3. Change APN auth key to an old one
  4. Change APN auth key back to the new one
  5. Delete the FCM token on our server
  6. App requests new FCM token on startup and receives the same FCM token as before it was deleted
  7. Push message from our server to the FCM token -> The user doesn't receive the message

We have transferred the IOS app to a new account and now we can only push to our IOS users after the remove and install the app again.

Please, any advice on what to do will be greatly appreciated! Having to communicate to ALL IOS users that they have to reinstall their app is devastating!

Thanks in advance!

Originally posted by @JakobMaaloe in #2125 (comment)

@google-oss-bot

This comment has been minimized.

@JakobMaaloe JakobMaaloe changed the title We are facing the same problem. After transferring of app, all push tokens in FCM is invalid and users have to reinstall app in order for push to work After transferring of app, all push tokens in FCM is invalid and users have to reinstall app in order for push to work May 3, 2019
@JakobMaaloe JakobMaaloe changed the title After transferring of app, all push tokens in FCM is invalid and users have to reinstall app in order for push to work After transferring of app, all push tokens in FCM are invalid and users have to reinstall app in order for push to work May 3, 2019
@morganchen12
Copy link
Contributor

Hey @JakobMaaloe, please file this here so we can look at your Firebase project and instance IDs.

@morganchen12 morganchen12 self-assigned this May 3, 2019
@JakobMaaloe
Copy link
Author

JakobMaaloe commented May 3, 2019

Hi Morganchen12.

Support case has been created with the APNs (from apple console - I hope this can be used)

We've just tried the following:

  1. Reinstall the app on a device
  2. Push message from our server to the FCM token -> The user receives the message
  3. Change APN auth key to an old one
  4. Change APN auth key back to the new one
  5. Delete the FCM token on our server
  6. App requests new FCM token on startup and receives the same FCM token as before it was deleted
  7. Push message from our server to the FCM token -> The user doesn't receive the message
    One solution could be if we could force all users FCM token to refresh... Any way that's possible?
    I can send you the APNS token from Apple console in a support ticket if you still need it.

We cannot update the production app with new sourcecode unfortunately.

Thanks!

@JakobMaaloe
Copy link
Author

Hi @morganchen12 ,

Any news on this?

Our users don't get push messages so it's vital for us to find a solution asap...

Br.
Jakob Maaløe

@morganchen12
Copy link
Contributor

Hi @JakobMaaloe, the Firebase support team doesn't work on weekends. Normally, when the APNs key is changed or invalidated, the tokens on the client should invalidate and reset over a short period of time. The clients should then regenerate new tokens that work when sending notifications. We're looking into why this isn't happening as expected.

@JakobMaaloe
Copy link
Author

Ok, thank you for the update. Fingers crossed that the invalidation can happen soon.

Br.
Jakob Maaløe

@JTJLabs
Copy link

JTJLabs commented May 13, 2019

@morganchen12

Any news on this issue?

Thanks.

Br.
Jakob Maaløe

@morganchen12
Copy link
Contributor

Hi Jakob, please respond to the support email:

Could you also share the debug logs when you switch Apple accounts on the console and Xcode certificates at the first time the app is re-opened after these APNs changes (and APNs token change) has occurred?

@JTJLabs
Copy link

JTJLabs commented May 16, 2019 via email

@morganchen12
Copy link
Contributor

You can get the debug logs from Xcode console when running the app with the debugger attached. The certificates are generated from your Apple Developer account in the developer center.

@JakobMaaloe
Copy link
Author

@morganchen12
Responded with the log to firebase-help@google.com

Again, could you invalidate the FCM tokens that haven't been
invalidated during the so our users have push messages working again?

@morganchen12
Copy link
Contributor

We're looking into it.

@JTJLabs
Copy link

JTJLabs commented May 22, 2019 via email

@morganchen12
Copy link
Contributor

Unfortunately, we can't manually invalidate all of your app's tokens. However, you can do this manually by shipping an update that deletes the stored instance ID on first app launch.

@firebase firebase locked and limited conversation to collaborators Oct 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants