rdelrosario / xamarin-plugins

Cross platform Xamarin & Windows plugins for PCLs
MIT License
179 stars 161 forks source link

ANDROID Crash INVALID_PARAMETERS #134

Open Danielmat opened 6 years ago

Danielmat commented 6 years ago

In version 1.2.5-beta has an error soon after registering in the method IPushNotificationListener.OnError (string message, DeviceType deviceType)

I can get the token more after it returns the error:

Java.IO.IOException: INVALID_PARAMETERS At System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <3fd174ff54b146228c505f23cf75ce71>: 0 at Java.Interop.JniEnvironment + InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue args) [0x00069] in : 0 at Android.Runtime.JNIEnv.CallVoidMethod (System.IntPtr jobject, System.IntPtr jmethod, Android.Runtime.JValue parms) [0x0000e] in : 0 at Android.Gms.Gcm.GcmPubSub.Subscribe (registrationToken System.String, System.String topic, extra Android.OS.Bundle) [0x00096] in <442f26a0595046369060be9502394e67>: 0 At PushNotification.Plugin.PushNotificationRegistrationIntentService.SubscribeTopics (System.String token) [0x00023] in <06cf100f14f94017b47f90010ef822f3>: 0 at PushNotification.Plugin.PushNotificationRegistrationIntentService.OnHandleIntent (Android.Content.Intent intent) [0x0004a] in <06cf100f14f94017b47f90010ef822f3>: 0 --- End of the handling Java.IO.IOException stack trace --- Java.io.IOException: INVALID_PARAMETERS At com.google.android.gms.iid.zzc.zzb (Unknown Source) At com.google.android.gms.iid.zzc.zza (Unknown Source) At com.google.android.gms.iid.InstanceID.zzc (Unknown Source) At com.google.android.gms.iid.InstanceID.getToken (Unknown Source) At com.google.android.gms.gcm.GcmPubSub.subscribe (Unknown Source) At md563bb5d7cd114ceda82ec85fb57ce3637.PushNotificationRegistrationIntentService.n_onHandleIntent (Native Method) At md563bb5d7cd114ceda82ec85fb57ce3637.PushNotificationRegistrationIntentService.onHandleIntent (PushNotificationRegistrationIntentService.java:37) At android.app.IntentService $ ServiceHandler.handleMessage (IntentService.java:66) At android.os.Handler.dispatchMessage (Handler.java:111) At android.os.Looper.loop (Looper.java:207) At android.os.HandlerThread.run (HandlerThread.java:61)

Register - PushNotificationRegistationIntentService
AlcantaraRW commented 6 years ago

Same issue here.