Code Monkey home page Code Monkey logo

Comments (5)

kraigs-android avatar kraigs-android commented on August 19, 2024

This is a new restriction in android 10. Background services are no longer allowed to open a window that takes focus while the user is using the phone.
https://developer.android.com/guide/components/activities/background-starts

The only reasonable alternative in this case is a high priority notification that temporarily pops up at the top of the screen. However, it should still work when you're not using the phone and the screen is locked.

from kraigsandroid.

Victor239 avatar Victor239 commented on August 19, 2024

Ah I see, that's unfortunate. Well a high-priority notification is better than nothing, right now I even have to scroll down a bit to find the alarm notification amongst my others.

from kraigsandroid.

kraigs-android avatar kraigs-android commented on August 19, 2024

This app defaults to high-priority in the last couple versions, but if you ever changed your phone's notification settings, the app settings may be overridden. If you select the app in your phone's Setting > Apps menus there should be a section to customize all of its notification settings.

from kraigsandroid.

Victor239 avatar Victor239 commented on August 19, 2024

I guess that would be the "Allow interruptions" and "Override Do Not Disturb" options? Don't see anything else related to high priority there, seems Android 10 reduced notifications settings a bit if there's only 5 options.

from kraigsandroid.

kraigs-android avatar kraigs-android commented on August 19, 2024

Yes, 'allow interruptions' should be on by default for high priority notifications unless one of the higher level preferences was changed (and is probably the one you are interested in here). 'override do not disturb' is never on by default (as far as I know), but doesn't really do anything in this context anyway. The notifications that appear have attributes associated with them including sounds and vibrations which can be blocked when 'do not disturb' mode is enabled. This app doesn't use those attributes, though. The sounds and vibrations that it makes are done from the background service that generates the notification and 'dismiss' window. That service explicitly ignores the 'do not disturb' setting.

from kraigsandroid.

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.