notehub | A pastebin for markdown pages
kandi X-RAY | notehub Summary
kandi X-RAY | notehub Summary
Dead simple hosting for markdown notes.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of notehub
notehub Key Features
notehub Examples and Code Snippets
Community Discussions
Trending Discussions on notehub
QUESTION
I only do Android development part time (which seems challenging considering the many subtleties and low-levelness of the APIs) and have a problem with receiving notifications while my app is in the background. I am targeting Android 8.1. My app happens to use Azure and Xamarin, but I do not know if those details are inherent to the problem.
If my app is in the background sometimes notifications can be displayed, other times my app crashes with this error:
...ANSWER
Answered 2019-Mar-06 at 17:58Android 8.0 (API level 26) and above have limitation with respect to background service. It includes the following changes to specific methods:
The startService() method now throws an IllegalStateException if an app targeting Android 8.0 tries to use that method in a situation when it isn't permitted to create background services. The new Context.startForegroundService() method starts a foreground service. The system allows apps to call Context.startForegroundService() even while the app is in the background. However, the app must call that service's startForeground() method within five seconds after the service is created.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install notehub
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page