matimenich / cordova-plugin-nativeclicksound Goto Github PK
View Code? Open in Web Editor NEWNative Click Sound for Android and iOS
Native Click Sound for Android and iOS
Hi,
how do i had cordova-plugin-nativeClickSound in a Ionic project, please ? I mean after installation.
Thank you.
EDIT: Got it. Works fine. Thanks for the plugin. :)
Hey MatiMenich,
Apparently when I'm using your nativeclicksound plugin in ionic 3 some button click sounds will trigger multiple times, while others only trigger once or even not at all. Is this a issue with the plugin or is it ionic related?
I've tried both watching the buttons and a tags and also trying to trigger them manually. Even when triggering them manually I get multiple click sounds at once.
I'm going to continue checking out my code to be sure no click events are fired multiple times...
EDIT: It seems like event binding doesn't work properly outside of angular and causes random elements to fail registering as click handler. Whenever I find a tutorial on writing angular cordova plugins I'll rebuild this plugin into one that works for ionic.
EDIT2: It wasn't a angular issue or event binding issue but rather a nativeclick.js issue.
Hi. Nice work with this little plugin. This should be default behavior for Ionic apps on devices.
My question is: what are possible values for class names that should make a sound?
I tried various things, and it seems that only 'button' and 'a' produce results.
I am trying to give audible feedback to user clicking 'back' button in Ionic navbar with no success. Other navbar buttons work, but 'back' doesn't. I know I could do it manually, but in this case, if I add nativeclick.trigger() to navCtrl.pop() and user presses hardware back button, two clicks will be fired.
Also can't make it work for ion-segment buttons and radio buttons.
Any suggestions?
Hello,
I installed this plugin on a project that I'm developing, it works on Android but IOS does not have any sound.
This is my code.
var clickclasses = ['ClickSound'];
nativesound.nativeClickSound.watch(clickclasses);
Does anyone have the same problem? How to solve?
thank you
This plugin is working fine on iOS but not on Android. On Android, nativeclick appears to be defined but I don't hear anything. The error callback isn't triggered either. Please advise.
"platform": "Android",
"version": "6.0.1",
"cordova": "4.1.1",
"model": "Nexus 5X",
"manufacturer": "LGE",
cordova-plugin-crosswalk-webview 1.5.0
Thanks
today i'm developing project as cordova. and then i need native sound click and your git.
i tested in class of tag and i listened it.
but class only not also i recommendation option or function, method. for tag, type, etc... selector
Hi. Nice work with this little plugin. This should be default behavior for Ionic apps on devices.
My question is: what are possible values for class names that should make a sound?
I tried various things, and it seems that only 'button' and 'a' produce results.
I am trying to give audible feedback to user clicking 'back' button in Ionic navbar with no success. Other navbar buttons work, but 'back' doesn't. I know I could do it manually, but in this case, if I add nativeclick.trigger() to navCtrl.pop() and user presses hardware back button, two clicks will be fired.
Also can't make it work for ion-segment buttons and radio buttons.
Any suggestions?
Hello there,
I installed this plugin on my Ionic 3 project but it didn't work out.
Please advice.
Thanks.
LH
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.