Skip to content

Conversation

UlfR
Copy link
Contributor

@UlfR UlfR commented Mar 18, 2017

Exception after FCM.scheduleLocalNotification call:

Key fire_date expected Long but value was a java.lang.Double.  The default value 1489824292000 was returned.
Attempt to cast generated internal exception:
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Long
	at android.os.BaseBundle.getLong(BaseBundle.java:834)
	at com.evollu.react.fcm.FIRLocalMessagingHelper.sendNotificationScheduled(FIRLocalMessagingHelper.java:224)
	at com.evollu.react.fcm.FIRMessagingModule.scheduleLocalNotification(FIRMessagingModule.java:86)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:345)
	at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:136)
	at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
	at android.os.Looper.loop(Looper.java:135)
	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:196)
	at java.lang.Thread.run(Thread.java:818)

Removing 'bundle.getLong' fix it.

@evollu evollu merged commit 3f6009b into evollu:master Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants