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 Alderton on Replacing the Xamarin Header/Navigation bar with a custom view/template
17 Jan 2018, 15:30 PM
By Luke Alderton on My experience at Umbraco UK Festival 2017
17 Jan 2018, 14:51 PM
By Victor La Fortuna on Solved: 'Debug/ibTool/LaunchScreen.storyboardc/Info.plist does not exist' Xamarin
10 Jan 2018, 14:32 PM
By Jose Luis on Replacing the Xamarin Header/Navigation bar with a custom view/template
7 Jan 2018, 11:06 AM
By Chris Howarth on My experience at Umbraco UK Festival 2017
28 Dec 2017, 10:32 AM
By Luke Alderton on Xamarin forms - Stop/Cancel back button event
20 Dec 2017, 05:49 AM
By Antony on Xamarin forms - Stop/Cancel back button event
18 Dec 2017, 11:19 AM
By dipbleds on Raspberry Pi - Bluetooth using Bluecove on Raspbian
12 Dec 2017, 21:29 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development