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 Luke on Auto/Custom height on Xamarin Forms WebView for Android and iOS
15 Jun 2018, 09:43 AM
By vikki on Auto/Custom height on Xamarin Forms WebView for Android and iOS
14 Jun 2018, 13:35 PM
By jimbo on JQuery Unobtrusive Validation for dynamically created elements
13 Jun 2018, 17:13 PM
By ScottKem on MVC forms in Umbraco
8 Jun 2018, 10:29 AM
By Alaa on java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
3 Jun 2018, 20:16 PM
By Robertfrold on MVC forms in Umbraco
3 Jun 2018, 12:11 PM
By Kiran Lad on How to add a Xamarin Forms Loading Screen/Overlay
29 May 2018, 06:39 AM
By jake on Xamarin forms - Stop/Cancel back button event
26 May 2018, 15:24 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development