Foreground-Notification does not work after app start
See original GitHub issueif i call FileDownloader.getImpl().startForeground()
for the first time after app start, i get sometimes this:
W/FileDownloader.DownloadServiceNotConnectedHelper: request set the download service as the
foreground service([354],[Notification(pri=2 contentView=null vibrate=null sound=null
defaults=0x4 flags=0x3 color=0x00000000 actions=1 vis=PRIVATE)]), but the download service
isn't connected yet.
is it necessary to issue the start()
command of e.g. a FileDownloadQueueSet
before to make sure the service is started?
currently i call first startForeground()
as i want to display the notification already, where in the meanwhile i’m fetching the download urls and starting the actual download after i get the download-url response.
if i then issue a second download afterwards, the notification works properly.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9
Top Results From Across the Web
Notification Doesn't work in the foreground - Stack Overflow
The msg sent from server has to be sent in either "notification" or "data" format, from dashboard or server side api. Note: From...
Read more >Foreground Notifications are not working · Issue #525 - GitHub
Unable to receive foreground notifications on Android( didn't test on iOS ) with OS 10. When app is minimized the notifications are working....
Read more >Foreground services - Android Developers
A music player app that plays music in a foreground service. The notification might show the current song that is being played. ·...
Read more >Foreground service - Microsoft Q&A
The app starts without problems and when I start the foreground service, the notification appears, the service works without problems even when ......
Read more >Handling Notifications and Notification-Related Actions
A notification that arrives when your app is running in the foreground. A silent notification (see Pushing Background Updates to Your App).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have an idea to make you do that easier, like below two pattern:
Sorry, It does not make sense because
startForeground
need a customizenotification
…