2020-07-08 23:28:13.863 29955-29992/com.kegeltrainer W/Bundle: Key repeat_interval expected Integer but value was a java.lang.Double. The default value 1 was returned.
2020-07-08 23:28:13.863 29955-29992/com.kegeltrainer W/Bundle: Attempt to cast generated internal exception:
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer
at android.os.BaseBundle.getInt(BaseBundle.java:873)
at com.emekalites.react.alarm.notification.ANModule.sendNotification(ANModule.java:147)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loop(Looper.java:154)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
at java.lang.Thread.run(Thread.java:761)
2020-07-08 23:28:13.863 29955-29992/com.kegeltrainer W/Bundle: Key snooze_interval expected Integer but value was a java.lang.Double. The default value 1 was returned.
2020-07-08 23:28:13.863 29955-29992/com.kegeltrainer W/Bundle: Attempt to cast generated internal exception:
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer
at android.os.BaseBundle.getInt(BaseBundle.java:873)
at com.emekalites.react.alarm.notification.ANModule.sendNotification(ANModule.java:154)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loop(Looper.java:154)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
at java.lang.Thread.run(Thread.java:761)
2020-07-08 23:28:13.863 29955-29992/com.kegeltrainer W/Bundle: Key vibration expected Integer but value was a java.lang.Double. The default value 100 was returned.
2020-07-08 23:28:13.863 29955-29992/com.kegeltrainer W/Bundle: Attempt to cast generated internal exception:
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer
at android.os.BaseBundle.getInt(BaseBundle.java:873)
at com.emekalites.react.alarm.notification.ANModule.sendNotification(ANModule.java:162)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loop(Looper.java:154)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
at java.lang.Thread.run(Thread.java:761)
When attempting to set an alarm using the
repeat_interval
,snooze_interval
andvibration
fields. i.eThese errors are thrown:
Tested on:
Related to #47, #65. These changes parse the settings as
doubles
then cast them back toints