GithubHelp home page GithubHelp logo

vvelda / device-feedback Goto Github PK

View Code? Open in Web Editor NEW
39.0 39.0 9.0 76 KB

Plugin provides a way for haptic and acoustic feedback to the user.

License: BSD 2-Clause "Simplified" License

JavaScript 22.47% Java 32.63% HTML 44.90%

device-feedback's People

Contributors

vvelda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

device-feedback's Issues

build failed with android cordova 4.0.0

I am having trouble compiling with the latest version of cordova android:

Installed platforms: android 4.0.0

Most likely the problem is how the CordovaWebView no longer extends its parent in the same way as it did before. Several other plugins are also dealing with the same issue (e.g. com.telerik.plugins.nativepagetransitions, de.appplant.cordova.plugin.local-notification). Here is the error section of output log upon cordova build android:

:compileArmv7DebugJava
/Users/cewalker/Sites/hello/platforms/android/src/cz/Velda/cordova/plugin/devicefeedback/DeviceFeedback.java:33: error: cannot find symbol
        webView.setSoundEffectsEnabled(false);
               ^
  symbol:   method setSoundEffectsEnabled(boolean)
  location: variable webView of type CordovaWebView
/Users/cewalker/Sites/hello/platforms/android/src/cz/Velda/cordova/plugin/devicefeedback/DeviceFeedback.java:56: error: cannot find symbol
            webView.performHapticFeedback(args.getInt(VIBRATE_TYPE_INDEX));
                   ^
  symbol:   method performHapticFeedback(int)
  location: variable webView of type CordovaWebView
2 errors
:compileArmv7DebugJava FAILED

Wish I could contribute a fix, but I'm not familiar enough with the android platform. Is there a quick fix for this?

Cheers!

Android 5 Haptic Feedback - Not Working

On my Galaxy S4, after upgrading to Android 5.0.1, haptic feedback is not working, although it's enabled from settings

Before Android 5, there was no issues

Anyone in a similar situation?

is this plugin still working?

Hi, i just want to know how to implement this plugin in ionic 2 for android

i created a button, a add a click event to it, then this is my function

findride(){
this.deviceFeedback.haptic(0);
}

but nothing happen. what i did wrong?

devicefeedback in <iframe or <embed tag?

HI
I have an app in cordova that have part of them in an external server, and the users can interact with an iframe (or embed if necessary).

With the local files the devicefeedback works perfectly, but not in the iframe or in the embed tag...

Do you know if is possible to activate the devicefeedback in the remote files too?

regards
MaX

Doesn't work with Crosswalk

error: cannot find symbol
        webView.setSoundEffectsEnabled(false);
               ^
  symbol:   method setSoundEffectsEnabled(boolean)
  location: variable webView of type CordovaWebView

error: cannot find symbol
            webView.performHapticFeedback(args.getInt(VIBRATE_TYPE_INDEX));
                   ^
  symbol:   method performHapticFeedback(int)
  location: variable webView of type CordovaWebView

Not sure why webView cannot find those methods.. i thought those methods are overridden from apache webView from crosswalk point of view. Have you noticed?

Btw, it's great plugin!

Phonegap build

Hello!

Thanks for the awesome plugin.

Is it possible to provide this plugin in the "official" 3rd party plugin repository at Phonegap?

Another question: Are you planning to expand this plugin also for iOS?

Best greets
David

Not working on iOS

I've removed and re-added this plugin from the master branch, yet I see these error messages when I run the app on iOS.

015-08-18 11:46:54.460 Useful[9493:4532678] Apache Cordova native platform version 3.8.0 is starting.
2015-08-18 11:46:54.461 Useful[9493:4532678] Multi-tasking -> Device: YES, App: YES
2015-08-18 11:46:54.465 Useful[9493:4532678] Unlimited access to network resources
2015-08-18 11:46:54.470 Useful[9493:4532678]

Started backup to iCloud! Please be careful.
Your application might be rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines" at:
ple.com/icloud/documentation/data-storage/
To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file

2015-08-18 11:46:54.668 Useful[9493:4532678] [CDVTimer][file] 38.239956ms
2015-08-18 11:46:54.669 Useful[9493:4532678] Init FacebookConnect Session
2015-08-18 11:46:54.675 Useful[9493:4532678] [CDVTimer][facebookconnectplugin] 6.033003ms
2015-08-18 11:46:54.802 Useful[9493:4532678] [CDVTimer][statusbar] 127.653003ms
2015-08-18 11:46:54.803 Useful[9493:4532678] [CDVTimer][TotalPluginStartup] 173.368990ms
2015-08-18 11:46:54.960 Useful[9493:4532678] active
2015-08-18 11:46:54.963 Useful[9493:4532678] Attempting to badge the application icon but haven't received permission from the user to badge the application
2015-08-18 11:46:55.089 Useful[9493:4532678] Resetting plugins due to page load.
2015-08-18 11:46:55.306 Useful[9493:4532678] Finished load of: file:///private/var/mobile/Containers/Bundle/Application/D6F75A85-D36B-44F4-A0A9-D77865698787/Useful.app/www/index.html?cordova
2015-08-18 11:47:05.022 Useful[9493:4532678] ERROR: Plugin 'DeviceFeedback' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
SON = ["DeviceFeedback250510329","DeviceFeedback","Sound",[]]
2015-08-18 11:47:07.397 Useful[9493:4532678] ERROR: Plugin 'DeviceFeedback' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
SON = ["DeviceFeedback250510330","DeviceFeedback","Sound",[]]
2015-08-18 11:47:08.508 Useful[9493:4532678] ERROR: Plugin 'DeviceFeedback' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2015-08-18 11:47:08.509 Useful[9493:4532678] -[CDVCommandQueue executePending] [Line 159] FAILED pluginJSON = ["DeviceFeedback250510331","DeviceFeedback","Sound",[]]
2015-08-18 11:47:09.665 Useful[9493:4532678] ERROR: Plugin 'DeviceFeedback' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
SON = ["DeviceFeedback250510332","DeviceFeedback","Sound",[]]

Use this as 3rd party plugin in Intel xdk

Hi,

I need to use this as third party plugin while building android app with cordova from Intel xdk.
I added the plugin with the plugin add interface, and used the JS code to play sound as per your doc, but it didn't work.

I'm testing on Android 4.4.4 device.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.