Comments (6)
Updated. Managed to solve the issue but now when press the volume buttons then it would not fire event rather than that it would increase the device volume.
from cordova-music-controls-plugin.
Check the readme, some buttons only fire events on certain operating systems. iOS doesnโt fire volume events and will only change device volume. This is an iOS limitation.
Android should fire volume change events and change the media volume.
from cordova-music-controls-plugin.
Updated. Managed to solve the issue but now when press the volume buttons then it would not fire event rather than that it would increase the device volume.
Hi! I know it's been a while but how did you managed to make it work in Ionic3. I can't get the events from headphones. I only need the main button.
from cordova-music-controls-plugin.
What do you mean by main button ?
from cordova-music-controls-plugin.
Sorry if I explained myself wrong. Headphones usually have 3 buttons: vol+, vol- and the one you use to play/pause. I don't know its name. My app recognize when I plug/unplug the headphones, but none of the buttons.
from cordova-music-controls-plugin.
As far as i remember i was actually not able to get the middle button working but was able to get vol+ and vol- button by listening for cordova events
please refer to this https://cordova.apache.org/docs/en/latest/cordova/events/events.html#volumedownbutton
from cordova-music-controls-plugin.
Related Issues (20)
- Not running HOT 3
- Music control external controls stop working
- updateIsPlaying won't work and ios controls continuously pops up as "playing" HOT 1
- Plugin didn't work on iOS 11.4 HOT 5
- Ionic 4 cordova-plugin-music-controls breaks build HOT 14
- Ionic Webview 2.4.0 removes WKSuspendInBackground HOT 2
- Not being able to include in new projects HOT 1
- Build failed: Task :app:compileDebugJavaWithJavac FAILED HOT 15
- Run in Background HOT 13
- iOS - Invalid Callback ID HOT 8
- iOS does not work HOT 5
- Music controls don't work HOT 2
- Ionic - Issue installation
- The song is constantly stuck! Need help! HOT 2
- Plugin crashes on iOS 13 HOT 12
- Controls are not firing HOT 2
- musicControl.destroy doesnt close the control in IOS HOT 2
- Does not work on iOS; HOT 9
- User kill app, notification not. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-music-controls-plugin.