Closed Amitb01FUB closed 1 year ago
Solved:
As said in the Readme's "manual installation" section, I had to add this block to my AndroidManifest.xml
:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application ....>
<receiver
android:name="com.emekalites.react.alarm.notification.AlarmReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="ACTION_DISMISS" />
<action android:name="ACTION_SNOOZE" />
</intent-filter>
</receiver>
<receiver
android:name="com.emekalites.react.alarm.notification.AlarmDismissReceiver"
android:enabled="true"
android:exported="true" />
<receiver
android:name="com.emekalites.react.alarm.notification.AlarmBootReceiver"
android:directBootAware="true"
android:enabled="false"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON" />
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
</intent-filter>
</receiver>
Unlike what the Readme said, my app didn't crash, and I didn't manually install the package so I don't know why this wasn't there already
First of all, the app wouldn't even build after installing this package. I'm using gradle 7 and this package uses deprecated maven dependencies. To fix that I did some changes to the
build.gradle
that you can see in my comment here #175 ,but that's not the issue.My problem is that when I create new alarms they never actually fire. When I use the
scheduleAlarm
fucntion I get an id back, and that id exists if I checkgetScheduledAlarms()
, but when the time comes it just never fires.I've disabled 'do not disturb', maxed my volume, still noting.
my code:
App.js
MainActivity.java
Would be glad for some help