fix(test-app): register NotifyReceiver in AndroidManifest
The Vue test app was missing the NotifyReceiver registration in AndroidManifest.xml, preventing alarm broadcasts from being delivered to the BroadcastReceiver. This caused notifications scheduled via setAlarmClock() to fire but not display. Added NotifyReceiver registration matching the working android-test-app configuration. Also includes supporting improvements: - Enhanced alarm scheduling with setAlarmClock() for Doze exemption - Unique request codes based on trigger time to prevent PendingIntent conflicts - Diagnostic methods (isAlarmScheduled, getNextAlarmTime, testAlarm) - TypeScript definitions for new methods Verified: Notification successfully fired at 09:41:00 and was displayed.
This commit is contained in:
@@ -36,6 +36,13 @@
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<!-- NotifyReceiver for AlarmManager-based notifications -->
|
||||
<receiver
|
||||
android:name="com.timesafari.dailynotification.NotifyReceiver"
|
||||
android:enabled="true"
|
||||
android:exported="false">
|
||||
</receiver>
|
||||
|
||||
<receiver
|
||||
android:name="com.timesafari.dailynotification.BootReceiver"
|
||||
android:enabled="true"
|
||||
|
||||
@@ -3,5 +3,4 @@ include ':capacitor-android'
|
||||
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
|
||||
|
||||
include ':timesafari-daily-notification-plugin'
|
||||
// Plugin now uses standard structure: android/ (not android/plugin/)
|
||||
project(':timesafari-daily-notification-plugin').projectDir = new File('../node_modules/@timesafari/daily-notification-plugin/android')
|
||||
|
||||
Reference in New Issue
Block a user