Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds ability to set android ring tone on success/error #97

Merged
merged 2 commits into from
Nov 28, 2018

Conversation

albinhubsch
Copy link
Contributor

This PR enables us to set the setRingToneEnabled(Boolean enabled) on the UploadNotificationConfig on Android.

I've added the property enableRingTone to the notification object to allow users to activate this feature.

@@ -161,6 +161,7 @@ Returns a promise with the string ID of the upload. Will reject if there is a c
|`enabled`|boolean|Optional|Enable or diasable notifications|`{ enabled: true }`|
|`autoClear`|boolean|Optional|Autoclear notification on complete|`{ autoclear: true }`|
|`notificationChannel`|string|Optional|Sets android notificaion channel|`{ notificationChannel: "My-Upload-Service" }`|
|`enableRingTone`|boolean|Optional|Sets whether or not to enable the notification sound when the upload gets completed with success or error|`{ enableRingTone: true }`|
Copy link
Contributor

Choose a reason for hiding this comment

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

Please indicate this is android-only. Also if you could alphabetize the props, I'd appreciate it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@StevePotter I've added this to the header. The complete notification object is android only

@StevePotter StevePotter merged commit 46d8a36 into Vydia:master Nov 28, 2018
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.

None yet

2 participants