greywolf82
greywolf82

Reputation: 22173

Foreground service android wear

I didn't find any documentation about that. Is it possible to create a foreground service on android wear? Usually the foreground state is related with an ongoing notification but it's not possible on wear so I'm a bit confused. Is there anyone has a foreground service on wear?

Upvotes: 4

Views: 2018

Answers (1)

VJ Vélan Solutions
VJ Vélan Solutions

Reputation: 6554

As per documentation:

"The system enforces a timeout period. If you are displaying an activity and user's don't interact with it, the device sleeps. When it wakes back up, the Wear home screen is displayed instead of your activity. If you need to show something persistent, create a notification in the context stream instead."

So, i believe it's possible to have a persistent UI (may be not an ongoing foreground notification but a card or a stack instead).

Hope it helps.

Upvotes: 3

Related Questions