pnemonic78 / HalachicTimes

Halachic Times
Apache License 2.0
10 stars 2 forks source link

Alarms on Android 10 #100

Open pnemonic78 opened 3 years ago

pnemonic78 commented 3 years ago

From: Joe Gandolff jg###@gmail.com Date: Tuesday, 22 September 2020 at 12:47 Subject: Halachic Prayer Times Has Been Fixed To Work With Android 10

Greetings Moshe,

I managed to fix your Halachic Prayer Times app for alarms and notifications to work on Android 10 phones by adding the following Manifest.permissions:

ACCESS_BACKGROUND_LOCATION FOREGROUND_SERVICE SET_ALARM ACCESS_NOTIFICATION_POLICY REQUEST_IGNORE_BATTERY_OPTIMIZATIONS SYSTEM_ALERT_WINDOW ACCESS_WIFI_STATE

Now the extra option “Allow all the time” appears in Android 10 Location Access permission.

A user must in Android 10 settings for Halachic Prayer Times: Grant “Allow all the time” in Location Access permission Grant "Display over other apps" in advanced permissions Turn on "Reminder" in notifications Enable "Alerting" in notifications Enable "Pop on screen" in notifications

There is only one bug I have to figure out how to solve: After an alarm appears and you tap on the button to stop it, the Alarm stops but the Alarm Windows does not go away as it did in Android 9. Now you have to press the square button and swipe it up to get rid of it.

I have uploaded the following files to my Google Drive for your review:

Halachic Prayer Times 11.10-Modded.apk https://drive.google.com/file/d/1CygwqZVcu7sbCn8Z9YWXLke6NWTa0cPL/view?usp=sharing

and

Halachic Prayer Times 11.10-Modded Notes.txt https://drive.google.com/file/d/1xoB7aArAo2RyFRGm6SK2WFMVF1I8EBjh/view?usp=sharing

Your app has helped me tremendously in becoming religiously observant again and I thank you for that.

Sincerely,

Joseph Gandolff

pnemonic78 commented 3 years ago
  1. use background service to play the alarm tone
  2. use permission to allow starting activity from background