emekalites / react-native-alarm-notification

schedule alarm and local notification in react-native
https://www.npmjs.com/package/react-native-alarm-notification
MIT License
225 stars 95 forks source link

Unable to start receiver com.emekalites.react.alarm.notification.AlarmReceiver #55

Closed mezalejandro closed 4 years ago

mezalejandro commented 4 years ago

First of all thanks for this amazing library, it works very well but I got this error.

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'com.facebook.react.bridge.JavaScriptModule com.facebook.react.bridge.ReactApplicationContext.getJSModule(java.lang.Class)' on a null object reference at com.emekalites.react.alarm.notification.AlarmReceiver.onReceive(AlarmReceiver.java:86) at android.app.ActivityThread.handleReceiver(ActivityThread.java:3700) at android.app.ActivityThread.access$2000(ActivityThread.java:229) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1903) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:7406) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)