Android Question Stuck Notification

zavaree

Active Member
Licensed 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
 

zavaree

Active Member
Licensed 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

DonManfred

Expert
Licensed 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

Top