Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

making it so there are more options for notifications visibility #315

Merged
merged 1 commit into from
Apr 14, 2017
Merged

making it so there are more options for notifications visibility #315

merged 1 commit into from
Apr 14, 2017

Conversation

mr-ryan-james
Copy link

Right now, all android download notifications always show up in the task bar of the OS, because the enum VISIBILITY_VISIBLE_NOTIFY_COMPLETED is used. In order to allow the developer to not show notifications if they desire, I have added the ability to add a notificationsEnum property to the addAndroidDownloads writable map that can be filled in with,

0 - VISIBILITY_VISIBLE
1 - VISIBILITY_VISIBLE_NOTIFY_COMPLETED
2 - VISIBILITY_HIDDEN
3 - VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION

If no notificationsEnum property is supplied to addAndroidDownloads, the default will be used.

https://developer.android.com/reference/android/app/DownloadManager.Request.html#VISIBILITY_VISIBLE_NOTIFY_COMPLETED

@wkh237 wkh237 merged commit 07e9d71 into wkh237:0.11.0 Apr 14, 2017
@wkh237 wkh237 added this to the v0.11.0 milestone Apr 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants