Wake application

N Nicolas Etienne 3 years 6 months ago
1 1 0

Once again, I ask my question...
 
I've got an application which reacts on push made by server...
 
After few minutes, the "lock" screen is displayed (it's a image in my situation).
 
If I send a notification (like the push notification sample), the sound my app does play is well heard but the screen remains
on the lock screen.. So I MUST press home button to see what has been displayed on the screen.
 
Question : How a html file through asl.js or anything else can wake up the sb1 to act as if the user has pressed the home button ?
 
thanks

Please Register or Login to post a reply

1 Replies

N Nicolas Etienne

Well thanks to Ben Kennedy...

Here is a piece of code "to bring to front" your application when a notification is handheld by your application.

When the notification arrives, you could do so to remove the lock screen and avoid user to user home button to "wake"
up the display.

asl.badge(null);

asl.notify('application',
'low',
'Manager Message',
'My message',
['Accept'],
[function(){
alert('accept')
asl.badge(''/*URL to the badge screen*/);
}],
0);

CONTACT
Can’t find what you’re looking for?