After adding the Plugin (3.3.10 or 3.4.1), when debugging XF - Android I get the following error message
Class com.google.firebase.iid.zzb extended by class com.google.firebase.messaging.FirebaseMessagingService is inaccessible
Exception:
java.lang.IllegalAccessError: Class com.google.firebase.iid.zzb extended by class com.google.firebase.messaging.FirebaseMessagingService is inaccessible (declaration of 'com.google.firebase.messaging.FirebaseMessagingService' appears in /data/app/com.myco.myproject-6ueXHJpSOTg-VjPcM8KezQ==/base.apk!classes2.dex)
at java.lang.VMClassLoader.findLoadedClass(Native Method)
at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.AppComponentFactory.instantiateService(AppComponentFactory.java:129)
at androidx.core.app.CoreComponentFactory.instantiateService(CoreComponentFactory.java:75)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3935)
at android.app.ActivityThread.access$1500(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1875)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
No such issues with XF - iOS. I did have to manually upgrade the two following packages to the latest:
Xamarin.Firebase.iOS.CloudMessaging to 4.7.1
Xamarin.Firebase.iOS.InstanceID 4.8.0
UPDATE:
Looks to be a clash issue with the nuget packages below. On a separate project I added these two and got the issues.
After adding the Plugin (3.3.10 or 3.4.1), when debugging XF - Android I get the following error message
Class com.google.firebase.iid.zzb extended by class com.google.firebase.messaging.FirebaseMessagingService is inaccessible
Exception: java.lang.IllegalAccessError: Class com.google.firebase.iid.zzb extended by class com.google.firebase.messaging.FirebaseMessagingService is inaccessible (declaration of 'com.google.firebase.messaging.FirebaseMessagingService' appears in /data/app/com.myco.myproject-6ueXHJpSOTg-VjPcM8KezQ==/base.apk!classes2.dex) at java.lang.VMClassLoader.findLoadedClass(Native Method) at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738) at java.lang.ClassLoader.loadClass(ClassLoader.java:363) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at android.app.AppComponentFactory.instantiateService(AppComponentFactory.java:129) at androidx.core.app.CoreComponentFactory.instantiateService(CoreComponentFactory.java:75) at android.app.ActivityThread.handleCreateService(ActivityThread.java:3935) at android.app.ActivityThread.access$1500(ActivityThread.java:219) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1875) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
No such issues with XF - iOS. I did have to manually upgrade the two following packages to the latest:
Xamarin.Firebase.iOS.CloudMessaging to 4.7.1 Xamarin.Firebase.iOS.InstanceID 4.8.0
UPDATE: Looks to be a clash issue with the nuget packages below. On a separate project I added these two and got the issues.
Plugin.FirebaseCrashlytics https://github.com/f-miyu/Plugin.FirebaseCrashlytics
Plugin.FirebaseAnalytics https://github.com/f-miyu/Plugin.FirebaseAnalytics
Any suggestions on how to get this working?