Comments (6)
Hey @CataCluj, I would appreciate if you would fill in the form above :)
Please consider Android guidelines here: https://developer.android.com/develop/ui/views/notifications/time-sensitive#kotlin
And this article is also quite good: https://medium.com/android-news/full-screen-intent-notifications-android-85ea2f5b5dc1#:~:text=Full%2DScreen%20Intents%20are%20Intents,call%20or%20a%20ringing%20alarm.
As far as I understand, the only way to show a full-screen popup when the phone is unlocked is to use https://developer.android.com/reference/android/Manifest.permission#SYSTEM_ALERT_WINDOW
Alternative
Third button in com.better.alarm.background.NotificationsPlugin
This needs an additional Intent (like other two buttons), which triggers code much like in com.better.alarm.alert.AlarmAlertFullScreen#showSnoozePicker
from alarmclock.
Thank you. I had filled the form but between the comments'... delimiters. Shows how much I know.
I will try to go through those links but I may have to do a kotlin/android dev course before I can make sense of them.
I'll try to understand the proposed alternative.
Thanks again.
Are you still working on this?
from alarmclock.
From the first link you sent I see the (or part of the) problem: "The system UI may choose to display a heads-up notification, instead of launching your full-screen intent".
I do hope that a full-screen intent could be launched from some button on this heads-up notification? Is that what you proposed (in other words) above? I'm still learning and, even the "lingo".
from alarmclock.
In the second link it seems there are three different scenarios that may need to be addressed:
-Notify while the app is on the foreground
-Schedule Full-Screen Intent Notification
-Full-Screen Intent on Lock Screen with a Keyguard
What is not quite clear to me is if I have to address all these three scenarios separately (what a pain!) or might one be the grand-daddy that covers them all (and the others may exist because the grand-daddy may be too much if only the "lesser" needs need meeting).
from alarmclock.
About the "SYSTEM_ALERT_WINDOW", I feel like it would be justified for an alarm app and feels much less shifty then permissions to connect to internet, access to files, sensors, and others that many apps ask for even if not needed.
I don't think I would mind, as a user, granting such permission to an alarm app.
Thanks again.
from alarmclock.
Thank you. I had filled the form but between the comments'... delimiters. Shows how much I know. I will try to go through those links but I may have to do a kotlin/android dev course before I can make sense of them. I'll try to understand the proposed alternative. Thanks again. Are you still working on this?
Hey, I have missed your comment. Yes, I am working on this on occasion. Not very active, I have to admit.
from alarmclock.
Related Issues (20)
- Long Press on Snooze does not bring up Time Picker to choose snooze period/time. HOT 4
- Bug at AlarmScheduler#fireAlarmsInThePast HOT 8
- Internal rintone picker
- Phone vibrates on Android 13 without fade-in
- Bugreports do not work HOT 1
- Refactor Klaxon and vibration HOT 1
- Android 13 requires permission to show notifications
- When alarms scheduled for the same time only one is fired HOT 1
- calling the dayOfWeek value HOT 2
- Set clock without UI HOT 2
- Can't change global alarm sound
- More flexible alarm timing
- Special permission HOT 2
- repeat signal every N days
- Possible conversation/paid feature addition HOT 1
- Alarm triggers, screen wakes, then goes back to sleep; no fullscreen dialog box to dismiss alarm
- Change repeating alarm for one occurrence only
- App Crashes Immediately After Creating an Alarm HOT 1
- Crash due to Fragment not attached
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alarmclock.