PhoneGap Mobile App - Vibration does not

Hello

I created an application using the PhoneGap Desktop/Mobile App workflow, but I can't seem to get the plugin to vibration at work displaying my application through the application Mobile of PhoneGap using Android or iOS.

I simplified it down to a simple onClick event of a button that should trigger a function call to vibrate the device using navigator.vibration (3000); but it does not work via the Mobile of PhoneGap application.

If I use the CLI Cordova to add to the Android platform and then add the cordova-plugin-vibration plugin I can see the work of vibration using the emulator of the ripple. And it works when I build the application using the CLI too. But, I can't seem to do the Mobile of PhoneGap application reproduce this behavior. This may not seem like a huge problem, but I'm testing the features before that I teach this material to my students. Some of my students want to create games that exploit the vibration, and it is therefore important that they can test the operation of the vibration in their applications by using the Mobile of PhoneGap application.

Any ideas?

The config.xml file that generates the PhoneGap Developer app includes:

< gap: plugin name = "org.apache.cordova.xxx" > which I understand to be obsolete, rather than the most recent update < name of the plugin "cordova-plugin-xxx" = > ""

I wonder if that's part of the problem? I tried to change this parameter to the version no deprecated but still without success.

  • I am able to successfully use the PhoneGap Desktop App / combo app Developer to vibrate my device. I use:

Navigator.VIBRATE (300);

Of course, make sure that the deviceready event expected before using the API.

  • The app developer PhoneGap - as great as it is - replica not perfectly the environment receives a built application. Do not assume that what works and does not work in the application of the developer are what really happens when you build and run your application for real. You've already met such a difference: no file config.xml, the analysis is performed by the app Developer PG [that I can see] - as such, your efforts to change it will not result in a change in behavior.

I hope this helps. Good luck in your efforts to teaching.

Tags: PhoneGap

Similar Questions

  • my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    You may have installed one or more variants of the malware "VSearch' ad-injection. Please back up all data, and then take the steps below to disable it.

    Do not use any type of product, "anti-virus" or "anti-malware" on a Mac. It is never necessary for her, and relying on it for protection makes you more vulnerable to attacks, not less.

    Malware is constantly evolving to work around defenses against it. This procedure works now, I know. It will not work in the future. Anyone finding this comment a couple of days or more after it was published should look for a more recent discussion, or start a new one.

    Step 1

    VSearch malware tries to hide by varying names of the files it installs. It regenerates itself also if you try to remove it when it is run. To remove it, you must first start in safe mode temporarily disable the malware.

    Note: If FileVault is enabled in OS X 10.9 or an earlier version, or if a firmware password is defined, or if the boot volume is a software RAID, you can not do this. Ask for other instructions.

    Step 2

    When running in safe mode, load the web page and then triple - click on the line below to select. Copy the text to the Clipboard by pressing Control-C key combination:

    /Library/LaunchDaemons

    In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

    A folder named "LaunchDaemons" can open. If this is the case, press the combination of keys command-2 to select the display of the list, if it is not already selected.

    There should be a column in the update Finder window. Click this title two times to sort the content by date with the most recent at the top. Please don't skip this step. Files that belong to an instance of VSearch will have the same date of change for a few minutes, then they will be grouped together when you sort the folder this way, which makes them easy to identify.

    Step 3

    In the LaunchDaemons folder, there may be one or more files with the name of this form:

    com Apple.something.plist

    When something is a random string, without the letters, different in each case.

    Note that the name consists of four words separated by dots. Typical examples are:

    com Apple.builins.plist

    com Apple.cereng.plist

    com Apple.nysgar.plist

    There may be one or more items with a name of the form:

    com.something.plist

    Yet once something is a random string, without meaning - not necessarily the same as that which appears in one of the other file names.

    These names consist of three words separated by dots. Typical examples are:

    com.semifasciaUpd.plist

    com.ubuiling.plist

    Sometimes there are items (usually not more than one) with the name of this form:

    com.something .net - preferences.plist

    This name consists of four words (the third hyphen) separated by periods. Typical example:

    com.jangly .net - preferences.plist

    Drag all items in the basket. You may be prompted for administrator login password.

    Restart the computer and empty the trash.

    Examples of legitimate files located in the same folder:

    com.apple.FinalCutServer.fcsvr_ldsd.plist

    com Apple.Installer.osmessagetracing.plist

    com Apple.Qmaster.qmasterd.plist

    com Apple.aelwriter.plist

    com Apple.SERVERD.plist

    com Tether.plist

    The first three are clearly not VSearch files because the names do not match the above models. The last three are not easy to distinguish by the name alone, but the modification date will be earlier than the date at which VSearch has been installed, perhaps several years. None of these files will be present in most installations of Mac OS X.

    Do not delete the folder 'LaunchDaemons' or anything else inside, unless you know you have another type of unwanted software and more VSearch. The file is a normal part of Mac OS X. The "demon" refers to a program that starts automatically. This is not inherently bad, but the mechanism is sometimes exploited by hackers for malicious software.

    If you are not sure whether a file is part of the malware, order the contents of the folder by date modified I wrote in step 2, no name. Malicious files will be grouped together. There could be more than one such group, if you attacked more than once. A file dated far in the past is not part of the malware. A folder in date dated Middle an obviously malicious cluster is almost certainly too malicious.

    If the files come back after you remove the, they are replaced by others with similar names, then either you didn't start in safe mode or you do not have all the. Return to step 1 and try again.

    Step 4

    Reset the home page in each of your browsers, if it has been modified. In Safari, first load the desired home page, then select

    ▹ Safari preferences... ▹ General

    and click on

    Set on the current Page

    If you use Firefox or Chrome web browser, remove the extensions or add-ons that you don't know that you need. When in doubt, remove all of them.

    The malware is now permanently inactivated, as long as you reinstall it never. A few small files will be left behind, but they have no effect, and trying to find all them is more trouble that it's worth.

    Step 5

    The malware lets the web proxy discovery in the network settings. If you know that the setting was already enabled for a reason, skip this step. Otherwise, you should undo the change.

    Open the network pane in system preferences. If there is a padlock icon in the lower left corner of the window, click it and authenticate to unlock the settings. Click the Advanced button, and then select Proxies in the sheet that drops down. Uncheck that Auto Discovery Proxy if it is checked. Click OK, and then apply.

    Step 6

    This step is optional. Open the users and groups in the system preferences and click on the lock icon to unlock the settings. In the list of users, there may be some with random names that have been added by the malware. You can remove these users. If you are not sure whether a user is legitimate, do not delete it.

  • App Store does not open

    Under OS X El Capitan 10.11.4 iMac.  When you click on the App Store, it does not; the wheel of time turns just in the upper left corner.  The last time that the App Store has opened, I tried to update of the Keynote, and Numbers (I clicked on update and walked away); now they show on the Launchpad as if suspended so I open them via the Finder.  It is a problem I've had for at least a month; I have no trouble to solve because I rarely use the iMac, but I don't want to correct any suggestion would be gr.

    Hello

    Since the App Store does not open, check if the startup disk need to repair and restore OS X using OS X Recovery.

    Start your Mac while pressing the command + R keys.

    From there, you should be able to access the built in utilities in OS X recovery to repair the boot and OS X restore disc.

  • App-Manager does not connect to the Simulator OS Firefox on Windows 7

    OS: Windows 7

    Firefox: 28

    6.0pre8.20140112 Simulator 1.2 Firefox OS

    When I run the simulator it opens fine and I see a Firefox OS Desktop
    But the App Manager does not connect. The console at the bottom right says:

    .. localhost:56455 options (the port varies)

    .. connection timeout. Possible causes: has not clicked 'accept' (guest).

    .. .disconnecting

    .. .disconnected

    I have disabled my firewall, restarted firefox and even system - did not help
    There is a similar bug - but I don't know if we are talking about the same thing:
    https://support.Mozilla.org/en-us/questions/988385

    Thank you

    Well - I already knew these links and I can't find anything useful
    Anyway, I tried the Simulator instead of 1.2 1.3 (unstable)
    This one works very well

  • App Store does not work

    Dear Apple, personal,

    My App Store does not work. I'm not sure but I think since I upgraded my iOS version 9.3 the App Store has stopped working. I mean I tried to download several apps and their icons still display the word "pending"... It doesn't matter if I'm with a Wi - fi or cellular... It just doesn't... I have an iPhone 6 (bought on March 2016 in Houston - TX). Please, help me to solve this problem. Thank you very much. Paola Pereira.

    Have you ever tried to force restart the phone after the update into the button sleep and home for 10 seconds, until the Apple logo comes back again?

    You won't lose data, but force the reboot can cure some problems after installing new software or applications.

    Also try logging out of your account in the settings/iTunes and AppStore, reboot the phone and you log in again.

    In the event that you have implemented in settings/general/Restrictions of restrictions, turn them off and try again to update or download your applications.

  • How to disable the AppStore offers updated app that does not exist on the ipod touch 5g ios 9 and Reset counter app

    Regularly I receive notifications of updated Brainiacs Sudoku which I had deleted Ipod Touch 5 g a long time ago.  I can't disable the app update counter until I have download the update.  So, how to disable the AppStore offers updated app that does not exist on the ipod touch 5g ios 9 and Reset counter of the application once and for all?

    Try to hide this purchase

    Hide and show purchases iTunes or iBooks on your Mac or PC - Apple Support

  • Lenovo K3 notes App Lock does not

    Lenovo K3 notes App Lock does not work after update from 85 MB

    There isn't that one solution to the problem of blocking app first install app https://play.google.com/store/apps/details?id=com.domobile.applock or https://play.google.com/store/apps/details?id=com.thinkyeah.smartlockfree first go to setting - security - administrator of the device after that click on the option audit and that yet once back in the Security tab option applications with access to the use , click the button for the installed locking software app now check your phone two software work well some lenevo k3 phones also support https://play.google.com/store/apps/details?id=com.sp.protector.free&hl=en this request, so go ahead and enjoy with lenovo k3 updatessssssssssssssss

  • applock and smart app lock does not work on 5.1.1

    Hello. I just upgraded to 5.1.1

    But applock and smart app lock does not work more that is very important to me.

    Who else has experienced the same problem? If you know a solution, let me know pleasr. Thank you

    @avacs

    It's a new update, application developers must check and fix this compatibility problems, not Sony. If the application has been developed by Sony, Sony should fix the problem.

  • Migration E Xperia Xperia compact Z5 - Xperia transfer Mobile &amp; PC companion does not

    I bought a compact smartphone Z5 because they had already a series Xperia E. I wanted to migrate easily and instead, I have problems and application of local data transfer.

    1. I can't use the PC because the PC Companion requires at least Windows 7, so that my editing PC operating system Windows XP.

    2. I bought the micro USB sony original EC310 adapter cable to use the transfer Xperia Mobile application but does not.

    Check step 4 on both smartphones but then nothing happens. The Z5 recognizes the USB connection.

    On Xperia E usb port's on MTP and so on compact Z5. The bluetooth connection is active and receive all the permissions requested by the display.
    Xperia E is the model C1505 with Android 4.1.1 build 11.3.A.2.33.
    Compact Xperia Z5 Monte 6.0 Android

    I tried to disable and re-enable debugging.
    The operation is always performed with charged batteries.
    The cables used are all original Sony.

    How can I solve the problem? I can't use the new phone if you do not complete the migration because the phone has to be in order.

    I did some research and unfortunately Xperia E is not supported by Xperia transfer for several reasons,

    -It doesn't support USB host so an OTG adapter will not work

    -It does not direct WiFi support so a wireless transfer is not possible

    -It is not guaranteed to work with the Xperia Xperia companion transfer function

    I would say that the best idea here is to back up as much data as possible on an SD card and simply insert the SD card into your new phone. There might be some third-party solutions as well but I have no reference for I'm afraid.

    I'm terribly sorry for the inconvenience.

  • BlackBerry smartphone App World does not open

    I downloaded the latest version of my phone and now the app world does not open.  I already took out battery, removed and reloaded program.

    Not sure if this is something that will fix itself but I need to download a program.

    Well done...

  • Smartphones from blackBerry APP World does not recognize apps!

    I was downloading a game Bubble Breaker, and I lost the connection.  I had already received the email that PayPal had sent payment because it is a paid app.  When I tried to reinstall, App World wanted me to pay for it AGAIN.  The company sent me a link to download because they had been paid, and APP World does not recognize.

    I completely uninstalled App World and reinstalled and it does nothing to help.

    OK, good try.

    Your ISP offer support for AppWorld... contact them and explain. If they say they can't help you, they can. They take over AppWorld. Ask the question to be reassigned to a medium technical level RIM.

  • App tab does not load

    My App tab does not load in the drop-down list creative cloud. I got the spinning wheel of death. Someone please help!

    Screen Shot 2016-07-11 at 6.04.13 PM.png

    Try Adobe Creative Cloud desktop application does not open or shows a spinning wheel of progress

  • Cloud app creation does not open

    Windows 10. Cloud app creation does not open. Tried several times. Tried to uninstall, but the dialogue came telling me that several applications necessary so not able to uninstall.

    Tried to install on it. The app downloaded, he gave permission to install, and then nothing happened.

    Apps like Id and opened all right, but not the CC app all I can try?

    This can work...

    Sign out of your account... Uninstall... to run vacuuming...

    -http://helpx.adobe.com/creative-cloud/help/install-apps.html (and uninstall)

    -using the vacuuming after uninstalling and before reinstalling is often necessary

    -https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

    -Restart your computer... Sign in to your account... Reinstall

  • I can t install apps, its does not work

    I just bought it and now for every apps it says installation failed try again but nothing works, anyone know why?

    Thank you very much it works finally I don t know why, but it of working

    2016-01-26 18:07 GMT + 01:00 kglad [email protected]>:

    I can t install apps, its does not work created by kglad

    https://forums.Adobe.com/people/kglad> in * Cloud Creative download &

    Installation *-see complete discussion

    https://forums.Adobe.com/message/8430429#8430429>

  • I just tried to install the Adobe Creative Cloud trail and the apps tab does not work and I tried to uninstall several times and nothing. Any suggestions?

    I just tried to install the Adobe Creative Cloud trail and the apps tab does not work and I tried to uninstall several times and nothing. Any suggestions?

    An error keeps poping up on creative cloud without work and it's really annoying that I can't use it anymore or even try anything at all.

    Help, please

    Using creative cloud | Download error in the applications tab of Creative Cloud Desktop Application

Maybe you are looking for

  • Why overview begins with a file dialog box when it opens now?

    The last preview version now wants allows you to select a file when it is opened. I use the preview to create quick screenshots to the Clipboard and this behavior is a concern. It forces me to close this dialog box so that I can select new to show my

  • What is "Task host" and how do I get rid of him?

    When I try to shut down or restart my computer, it says a 'background' called "Task host" program is still ongoing.  I feel like "Task host" is not a good thing!  No one knows what it is and how to get rid of?

  • "Sleep" mode does not work after Windows Update

    After that a windows update 2 weeks ago my "mode" has been disabled. It is visible on the start menu, but is paler than other settings. I tried to restore my computer to before the update, but it says there is no date for the value. I've used the sys

  • Problems of band bandwidth WRT120N and torrent

    Hey guys,. I have a small problem and maybe you can help: Tested to speedtouch.net my router shows a great download and upload rate (no difference between a direct connection and reouter). The problem is when I try to download something using a torre

  • How to get rid of memory Fixer program?

    I some how installed or installed a program memory Fixer name.  How can I get rid of him? It keeps running diagnostics and give me a sales pitch for my hard disk cleanup.  I'll uninstall and before it starts I get a window saying hard drive not found