infil00p / cordova-crosswalk-engine

(UNMAINTAINED) Proof of Concept Third Party Web Engine using Crosswalk
Apache License 2.0
46 stars 440 forks source link

Bluetooth buttons does not work with Crosswalk Cordova #40

Open shadmehr opened 8 years ago

shadmehr commented 8 years ago

I created an empty Cordova (5.3.3) project with just Android platform then I added the “cordova-plugin-crosswalk-webview” plugin. When the app is in foreground, it seems that crosswalk webview intercepts any media button actions. So when I press the Play/Pause buttons of my Bluetooth, nothing happens. I don’t have any media elements in my app. Any idea on how I can solve this problem?

Steps: cordova create myapp cordova platform add android cordova plugin add cordova-plugin-crosswalk-webview cordova run When app is running on device, press the bluetooth button

jingjingxli commented 8 years ago

Hi.I reproduce this issue with these test steps.(cordova version 5.3.3) 1.cordova create myapp 2.cordova platform add android 3.cordova plugin add cordova-plugin-crosswalk-webview 4.cordova run android Open Play music app when the cordova app is in foreground. Press the Play buttons of my Bluetooth,Music can be played. Press the Pause buttons of my Bluetooth,Music can be paused. So,i cant't reproduce this issue. Please check if my test steps have any differences from yours and provide more details.

shadmehr commented 8 years ago

Hi, I think it's the same steps , just I opened play music app before running our app, then our app is tuning in foreground, I did the bluetooth test.Did you test it with device? Or with simulator? On Mar 25, 2016 4:46 AM, "jingjingxli" notifications@github.com wrote:

Hi.I reproduce this issue with these test steps.(cordova version 5.3.3) 1.cordova create myapp 2.cordova platform add android 3.cordova plugin add cordova-plugin-crosswalk-webview 4.cordova run android Open Play music app when the cordova app is in foreground. Press the Play buttons of my Bluetooth,Music can be played. Press the Pause buttons of my Bluetooth,Music can be paused. So,i cant't reproduce this issue. Please check if my test steps have any differences from yours and provide more details.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/infil00p/cordova-crosswalk-engine/issues/40#issuecomment-201204022

jingjingxli commented 8 years ago

Hi,I test it with device Google Nexus 5(android 4.4.2). And i also test with your test steps.Bluetooth can work well. please provide your test device model and android version.

shadmehr commented 8 years ago

I test it with Samsung S4 (android 5.0.1, Model SGH-I337M) and also One plus One (android 5.1.1, Model A0001), but Bluetooth button (play/pause) does not work. (I upload the test source and its apk at below link) https://drive.google.com/folderview?id=0B-jRCUPSIlAwTzlBUENhZUt6NE0&usp=drive_web

jingjingxli commented 8 years ago

Hi,I can reproduce this issue on test device Google Nexus 9(android 5.0). Link of this issue: https://crosswalk-project.org/jira/browse/XWALK-6653

shadmehr commented 8 years ago

Hi, I saw the reported issuee is marked as resolved .But,I tested cordova-plugin-crosswalk-webview 1.7.0 again and I still has this problem.