Skip to content

Conversation

dev-steverob
Copy link

Added getVolume() which returns a promise with the current volume set.

Copy link
Owner

@boedy boedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your submission Steve! I went through your PR and made some comments. Please review my comments and make changes. After everything checks out I'll make merge the PR.

@@ -1,4 +1,4 @@
# cordova-volume-control
# cordova-simple-volume
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is see you changed the name of the plugin. I'm assuming this is because another plugin has claimed the npm namespace. I'm open to changing this, but it would be good if releases of this package would be in sync with this repo.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't change the name I just folked a folk which had already changed the name? I have no preference on name

## Installation

cordova plugin add https://github.com/boedy/cordova-volume-control --save
cordova plugin add https://github.com/online-data-intelligence/cordova-simple-volume
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pointing to wrong repo

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just for my testing on my folk. I will put everything to point to the main repo

},
"repository": {
"type": "git",
"url": "git+https://github.com/online-data-intelligence/cordova-simple-volume.git"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong repo

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just for my testing on my folk. I will put everything to point to the main repo

"author": "Boudewijn Geiger",
"license": "Apache 2.0",
"bugs": {
"url": "https://github.com/online-data-intelligence/cordova-simple-volume/issues"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong repo

setVolume: function (volume) {
cordova.exec(null, null, "VolumeControl", "setVolumeCommand", [volume]);
},
getVolume: function () {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS does not support es6 syntax. So arrow functions (=>) don't work.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats strange as the plugin works on my iPhone? I will remove and test without the arrow functions.

Copy link
Owner

@boedy boedy Aug 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah it seems it works on the newer iOS safari versions . It would be good to support older versions too though (e.g iPod touch 5th generation is on iOS 9).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants