So I've recently updated my Google Play Services NuGet packages, and that has necessitated upgrading the Xamarin.Firebase.Iid package.
Following the guide here, I've added a class like this:
[Service, IntentFilter(new[] { "com.google.firebase.INSTANCE_ID_EVENT" })]
public class MyIidService : FirebaseInstanceIdService
{
...
}
Then I added a constructor for debugging purposes. The constructor is no longer being hit after the NuGet upgrade. This means that Firebase notifications no longer work in my app.
Does anyone know what the breaking changes are? I've upgraded from Xamarin.Firebase.Iid (Version 42.1001.0) to Version 42.2021.0.
I've tried removing the app, to make sure I got a new token. This didn't help, not on a physical device or the emulator.
@SushiHangover commented the following on a previous answer: v10.2.1 of the Firebase Android SDK introduced Android O preview changes to cloud messages (callback lifecycle changes, etc...) and that changed a lot of internals in those libraries.