语言

Menu
Sites
Language
How to show an alert / notification to get user's attention

In the web api, is there a way for a background running app to show an popup notification with sound and vibration even when the phone is locked? I mean kinda like a alert app. Is it possible? If it is, how? What are the essential API? Thanks in advance. 

响应

4 回复
talari praveen kumar

Hi

You can only hear the sound and vibration of the notification but you cannot see the popup notification if the phone is locked. You  can see the notification only when the phone is unlocked.

Imgen Tata

Ok, got it. So using notification API is the way to go I guess.

Alex Dem

Hi,
Just FYI:
For native Apps there is api  to show popup above Lock screen. But api requires platform privilege level:
https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fguide%2Fshell%2Flock_screen.htm
No such api for web apps at all.
Alexey.

Imgen Tata

That's unfortunate.