oney / react-native-gcm-android

GCM for React Native Android
MIT License
172 stars 76 forks source link

com.facebook.react.bridge.UnexpectedNativeTypeException: TypeError: expected dynamic type `int64', but had type `double' #59

Closed openGeeksLab closed 8 years ago

openGeeksLab commented 8 years ago

Notification parsedParams: {"subject":"Hello GCM","message":"Hello from the server side!","smallIcon":"ic_launcher","id":11269.0,"action":"DEFAULT","payload":"{}","autoClear":true,"tickerText":{"depth":2,"length":38,"s1":{"depth":1,"length":11,"s1":"Hello GCM","s2":": "},"s2":"Hello from the server side!"},"priority":1.0,"sound":"default","vibrate":"default","lights":"default","delayed":false,"scheduled":false} FATAL EXCEPTION: AsyncTask #4 Process: com.app, PID: 5322 com.facebook.react.bridge.UnexpectedNativeTypeException: TypeError: expected dynamic type int64', but had typedouble' at com.facebook.react.bridge.ReadableNativeMap.getInt(Native Method) at io.neson.react.notification.NotificationAttributes.loadFromReadableMap(NotificationAttributes.java:122) at io.neson.react.notification.NotificationAttributes.loadFromMap(NotificationAttributes.java:94) at io.neson.react.notification.GCMNotificationListenerService.sendSysNotification(GCMNotificationListenerService.java:60) at io.neson.react.notification.GCMNotificationListenerService.onMessageReceived(GCMNotificationListenerService.java:28) at com.google.android.gms.gcm.GcmListenerService.zzq(Unknown Source) at com.google.android.gms.gcm.GcmListenerService.zzp(Unknown Source) at com.google.android.gms.gcm.GcmListenerService.zzo(Unknown Source) at com.google.android.gms.gcm.GcmListenerService.zza(Unknown Source) at com.google.android.gms.gcm.GcmListenerService$1.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)