SimpleMobileTools / Simple-SMS-Messenger

An easy and quick way of managing SMS and MMS messages without ads.
https://www.simplemobiletools.com
GNU General Public License v3.0
607 stars 218 forks source link

add asking for Exact alarm permission before scheduling #693

Closed wilsonrc closed 1 year ago

wilsonrc commented 1 year ago

Add Asking for Exact alarm permission before Scheduling a message to avoid Issues caused by the exact alarm scheduling on Android 14. I also updated the Commons library version to use the new string for Alarm Permission Requests.

This PR can be simplified by using the updates that I pushed on this PR for the Commons Library: https://github.com/SimpleMobileTools/Simple-Commons/pull/1743. If the Commons Library's PR is approved, I can update this PR to use the new Commons function and extension.

tibbi commented 1 year ago

try redirecting not just to the list of all apps at alarms section, but directly to the specific app. Google Messages does it too with something like 21:16:00.650 I START u0 {act=android.settings.REQUEST_SCHEDULE_EXACT_ALARM dat=package: cmp=com.android.settings/.Settings$AlarmsAndRemindersAppActivity} with LAUNCH_MULTIPLE from uid 10142 (BAL_ALLOW_VISIBLE_WINDOW) result code=0

wilsonrc commented 1 year ago

try redirecting not just to the list of all apps at alarms section, but directly to the specific app. Google Messages does it too with something like 21:16:00.650 I START u0 {act=android.settings.REQUEST_SCHEDULE_EXACT_ALARM dat=package: cmp=com.android.settings/.Settings$AlarmsAndRemindersAppActivity} with LAUNCH_MULTIPLE from uid 10142 (BAL_ALLOW_VISIBLE_WINDOW) result code=0

I'll check this

tibbi commented 1 year ago

should be good, thanks

tibbi commented 1 year ago

forgot to merge..