FirebaseInstanceId: background sync failed: INVALID_PARAMETERS

So now that you've got Firebase Cloud Messaging (FCM) installed and you've just run the project but you run into the following message: FirebaseInstanceId: background sync failed: INVALID_PARAMETERS

After finding this page, https://github.com/firebase/quickstart-android/issues/54, it turns out that you just need to uninstall the app for all users on the device and then install it again, I guess the registration for the service only happens on install, I'm not too sure, but what I do know is that this solution works.

Something else that could solve your issue is to re-download the google-services.json and the message should then disappear...

One thing to remember when working with the google-services.json is to make sure that you specify its Build Action as GoogleServicesJson within the files properties, further details on how to do this can be found on the Xamarin website.

After the two above steps, you should now see the following message when you run the app: "FirebaseInstanceId: topic sync succeeded".

That's it!


Published at

Tags: Xamarin,Android,Firebase,Google

Luke Alderton

Comments

Post a comment
Sit tight...
We're adding your comment.
Thank you.
Your comment has been added.
There's been a problem.
Please try again later.
Share with
Tags
Latest Comments
By Ecake68 on MVC forms in Umbraco
16 Dec 2018, 16:11 PM
By Wowob43 on Restrict Umbraco Back Office by IP
16 Dec 2018, 10:21 AM
By Rosax69 on How does DNS work? For dummies!
15 Dec 2018, 16:44 PM
By Aroli61 on Using SQL DataTables to speed up database performance
15 Dec 2018, 09:02 AM
By Xasus39 on MVC forms in Umbraco
14 Dec 2018, 20:04 PM
By Shane on Xamarin Forms multiple instances of same app open
14 Dec 2018, 05:33 AM
By Apabu19 on Displaying text on a 16x2 LCD screen with a Raspberry Pi
13 Dec 2018, 18:26 PM
By Anuri66 on Using SQL DataTables to speed up database performance
13 Dec 2018, 13:52 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development