Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function startNotifications(){
- navigator.notification.confirm('Wähle einen Button.'
- confirmed, 'Bestätigung',
- 'A,B');
- }
- function confirmed(button){
- navigator.notification.beep(1);
- navigator.notification.alert('Es wurde '+button+' gedrückt.',
- dismissed, 'Benachrichtigung',
- 'Click Mich');
- }
- function dismissed(){
- navigator.notification.vibrate(1000);
- }
Add Comment
Please, Sign In to add comment