emj365 / cordova-plugin-audio-recorder-api

This plugin is a Cordova audio recorder plugin which works as API.
86 stars 63 forks source link

Causes touchend event to fire in Android 4.4.2 Samsung Galaxy Note II #18

Open dunksmith opened 9 years ago

dunksmith commented 9 years ago

Our UI for recording sound involves holding a button down whilst recording, then releasing to stop. We call the plugin on touchstart, then again on touchend.

This appears to work on every phone/OS that we tested apart from Android 4.4.2 on the Galaxy Note II. In this case, calling the plugin to start recording causes the touchend event to fire in the webview. In practice, this makes it appear as though the user has taken their finger off the screen.

Specifically, this line seems to be causing this behaviour:

myRecorder = new MediaRecorder();
...
myRecorder.prepare();
myRecorder.start(); // <--- THIS CAUSES TOUCHEND EVENT

Any ideas how to prevent or workaround this issue? Thanks in advance.

emj365 commented 8 years ago

Only in Galaxy Note II? I think I can't help.