Android Question Service swipe out of app tray

jayel

Active Member
Licensed User
Longtime User
Hello,

I have an app that runs a service with a websocket.
Now when I push the button that shows all the apps that are running, i swipe out my app and the pauze event fires with userclosed true, there I close my service.(normal)

When i push the home button the pauze event fires with userclosed = false (normal)

But when I push the button to show all my running apps and swipe out my app (close the app). No event get fired, so I cannot close my service and I get a message "appname stopped".

Greets,

John
 

jayel

Active Member
Licensed User
Longtime User
the strange thing is that i do not see any error
 
Last edited:
Upvote 0

jayel

Active Member
Licensed User
Longtime User
Erel,

Just tested it in release mode and i still get errors.
And in my log window i don't see anithing unussual.
 
Upvote 0

jayel

Active Member
Licensed User
Longtime User
I have following on top of my service :
B4X:
#Region  Service Attributes
    #StartAtBoot: false
    #StartCommandReturnValue: android.app.Service.START_STICKY
#End Region

Could this affect something?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…