change the pattern of vibration in Firefox OS app

Ishwar .Patil

I want to provide a different pattern of vibration for the notification from my app . Is it possible to do that and , if possible , how ?

Pankaj Andhale

@ Ishwar Patil
You can change the number series so as to change the vibration pattern..Try this code:

 var vibrate = document.querySelector("#vibrate");
    if (vibrate) {
        vibrate.onclick = function () {
            navigator.vibrate(2000);
            /*
                Possible values:
                On/off pattern:
                navigator.vibrate([200, 100, 200, 100]);

                Turn off vibration
                navigator.vibrate(0);
            */
        };

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Firefox OS - Change screen brightness from privileged app

From Dev

How to loop a dynamic vibration pattern in android?

From Dev

Android Create vibration pattern like Samsung

From Dev

Android Create vibration pattern like Samsung

From Dev

Do action when vibration finish his pattern

From Dev

change firefox os update channel does not work

From Dev

Firefox OS - save file in the app directory

From Dev

Firefox OS: How launch an APP in code

From Dev

Flurry analytics on Firefox OS privileged app

From Dev

How to launch a Firefox OS app on startup

From Dev

Launch Firefox OS app when notification is tapped

From Dev

How to upload a Firefox OS app on Android

From Dev

How to properly close a Firefox OS app?

From Dev

Firefox OS: what will be preferred, creating a separate packaged Firefox OS app or converting the mobile website to a Hosted app?

From Dev

Turn off vibration inside my app

From Dev

Creating Mobile App to Send Vibration to Android Wearable

From Dev

Turn off vibration inside my app

From Dev

Firefox OS - How to awap the homescreen app for another app

From Dev

how to change the display size of the firefox-os simulator?

From Dev

How can I change the wallpaper on a Firefox OS device?

From Dev

is it possible to change firefox OS' native UI with your own?

From Dev

Install firefox os apps available on Marketplace using App Manager

From Dev

Can I install an app as certified on my own phone? (Firefox OS)

From Dev

Javascript onClick() function is not working for Firefox OS Mobile App

From Dev

Firefox OS app submission: "The webapp manifest is not valid JSON."

From Dev

Connecting DB with my Firefox OS app using JS

From Dev

Firefox Addon - Change address bar url when domain matches some pattern

From Dev

How to change background color of NSSearchField (like in Messages app in OS X)

From Dev

OS X app focus ring doesn't change

Related Related

  1. 1

    Firefox OS - Change screen brightness from privileged app

  2. 2

    How to loop a dynamic vibration pattern in android?

  3. 3

    Android Create vibration pattern like Samsung

  4. 4

    Android Create vibration pattern like Samsung

  5. 5

    Do action when vibration finish his pattern

  6. 6

    change firefox os update channel does not work

  7. 7

    Firefox OS - save file in the app directory

  8. 8

    Firefox OS: How launch an APP in code

  9. 9

    Flurry analytics on Firefox OS privileged app

  10. 10

    How to launch a Firefox OS app on startup

  11. 11

    Launch Firefox OS app when notification is tapped

  12. 12

    How to upload a Firefox OS app on Android

  13. 13

    How to properly close a Firefox OS app?

  14. 14

    Firefox OS: what will be preferred, creating a separate packaged Firefox OS app or converting the mobile website to a Hosted app?

  15. 15

    Turn off vibration inside my app

  16. 16

    Creating Mobile App to Send Vibration to Android Wearable

  17. 17

    Turn off vibration inside my app

  18. 18

    Firefox OS - How to awap the homescreen app for another app

  19. 19

    how to change the display size of the firefox-os simulator?

  20. 20

    How can I change the wallpaper on a Firefox OS device?

  21. 21

    is it possible to change firefox OS' native UI with your own?

  22. 22

    Install firefox os apps available on Marketplace using App Manager

  23. 23

    Can I install an app as certified on my own phone? (Firefox OS)

  24. 24

    Javascript onClick() function is not working for Firefox OS Mobile App

  25. 25

    Firefox OS app submission: "The webapp manifest is not valid JSON."

  26. 26

    Connecting DB with my Firefox OS app using JS

  27. 27

    Firefox Addon - Change address bar url when domain matches some pattern

  28. 28

    How to change background color of NSSearchField (like in Messages app in OS X)

  29. 29

    OS X app focus ring doesn't change

HotTag

Archive