Giter Site home page Giter Site logo

Comments (6)

yuriykulikov avatar yuriykulikov commented on July 29, 2024

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.

CataCluj avatar CataCluj commented on July 29, 2024

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.

CataCluj avatar CataCluj commented on July 29, 2024

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.

CataCluj avatar CataCluj commented on July 29, 2024

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.

CataCluj avatar CataCluj commented on July 29, 2024

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.

yuriykulikov avatar yuriykulikov commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.