File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed
Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ android {
77 applicationId " com.notask.app"
88 minSdkVersion rootProject. ext. minSdkVersion
99 targetSdkVersion rootProject. ext. targetSdkVersion
10- versionCode 1518011
11- versionName " 15.18.11 "
10+ versionCode 1518012
11+ versionName " 15.18.12 "
1212 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
1313 aaptOptions {
1414 // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
Original file line number Diff line number Diff line change 11{
22 "type" : " module" ,
33 "name" : " my-notes-and-tasks-modern" ,
4- "version" : " 15.18.11 " ,
4+ "version" : " 15.18.12 " ,
55 "private" : true ,
66 "license" : " Licensed CC BY-ND 4.0. No derivatives allowed." ,
77 "scripts" : {
Original file line number Diff line number Diff line change @@ -88,15 +88,22 @@ class NotificationService {
8888 LocalNotifications . cancel ( { notifications : [ { id : notificationId } ] } ) ;
8989 }
9090
91- // Schedule a low-importance drawer notification instead
91+ // Show in-app alert instead
9292 const extra = notification ?. extra || notification ?. notification ?. extra ;
93- if ( extra && extra . itemId ) {
94- this . scheduleDrawerNotification ( {
95- itemId : extra . itemId ,
96- timestamp : Date . now ( ) ,
97- itemTitle : extra . originalReminder ?. itemTitle || 'Untitled' ,
98- originalReminder : extra . originalReminder
93+ const itemTitle = extra ?. originalReminder ?. itemTitle || extra ?. itemTitle || notification . body ?. replace ( "Don't forget: " , "" ) || 'Untitled' ;
94+
95+ console . log ( '🔔 Showing in-app reminder alert for:' , itemTitle ) ;
96+
97+ // Show native alert dialog
98+ if ( window . Capacitor ?. Plugins ?. Dialog ) {
99+ window . Capacitor . Plugins . Dialog . alert ( {
100+ title : '⏰ Reminder' ,
101+ message : `Don't forget: ${ itemTitle } ` ,
102+ buttonTitle : 'OK'
99103 } ) ;
104+ } else {
105+ // Fallback to browser alert
106+ alert ( `⏰ Reminder: Don't forget: ${ itemTitle } ` ) ;
100107 }
101108 }
102109 } ) ;
You can’t perform that action at this time.
0 commit comments