Android Question Stuck Notification

zavaree

Active Member
Licensed User
Longtime User
Hi AnyBody know About Why When Id use Service

Notifiction With The App Icon Stuck On My Notification Bar On My Phone And I Cant Remove Its Stuck

Device Android 8+

And I Use This

Service.StopAutomaticForeground

in Service_Start

But It Doesent Help
 

DonManfred

Expert
Licensed User
Longtime User
Try to recreate the problem in a small project.
Upload the project.
 
Upvote 0

zavaree

Active Member
Licensed User
Longtime User
Hello DonManfred Thanks For Your Help

This Is The Summery Of My Project

I Think The Service Is Problem

Should I Add Something In My Manifest?
 

Attachments

  • WhtrZip.zip
    207.1 KB · Views: 145
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I Think The Service Is Problem
There are several problems here
1. You are using an old, DEPRECATED, httputils. Replace it with okhttputils2
2. You are restarting the Service every 10 Seconds. Android will not allow this. Set the interval to 30 minutes or more.
3. A URL like "index.php" can not be found. There is missing the complete URL here.
 

Attachments

  • inclomplete.zip
    11.7 KB · Views: 178
Upvote 0
Top