This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

App using UART Service and BLE GATT faces 'service destroyed' issue

Dear team,

We are getting an error in running the Android app in the background: 'Service destroyed'. It comes when the app is minimized and use any other app after that.
Android discussion forums suggest that, from Android 8 onwards we need to use job scheduler for making sure that service doesn't get destroyed.

The service getting service is "UART Service".

Any Noridic specific workaround for apps using Nordic chips?

It would be nice if we can get some apps which derives background activity based on job scheduler rather than conventional class.

Thanks a lot.

  • Is the Android app throwing a "Service destroyed" message, or is it coming through on the Nordic chip over an RTT Log? My guess is Android, and if so it really doesn't sound like it is related to the Nordic chip.

    Without seeing the Android app source code it is hard to say but my guess is that when the Android app is back-grounded it is either disconnecting or cleaning up the link to the BLE chip.

Related