-
-
Notifications
You must be signed in to change notification settings - Fork 50
[Android] Customize UploadNotificationConfig #71
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
Comments
Hi @farzeni, Regarding that, I log this issue as a new feature. In the meantime, I could suggest setting those options inside the
the newly created tgz file could installed with |
Umm... I don't think this works, I get
|
Hi, i also tried your suggested fix and got the same error. |
I edited the the Please consider adding this functionally to your plugin in your next update. Thanks! The change that i made was to comment this section: |
+1 |
if you read the code you commented out, you will realize you can include the boolean flag 'androidDisplayNotificationProgress' in the options array passed to either 'uploadFile' or 'multipartUpload' (set to false to omit the notification). thanks for pointing it out, looking at this thread is what finally made that option and its use click. :) |
@bniehuser - Thank you for pointing that out! |
+1 |
@bniehuser note this doesn't appear to work for recent android versions. See #148 |
Currently I am facing two issues with the plugin :
Please suggest solutions asap. |
@tomshabtay, Would you have this file updated.? I wanted to copy it. Do you know about any course that explains how to create plugins, sometimes I need change something on code but give up on the same time because of complexity of them. |
@manoldonev i used tsonevn explanation in this thread to edit the plugin. |
This feature has been implemented is merged with #239 |
Released in [email protected] |
Hello,
I'm writing an android application and I need to customize the behavior of upload notifications. My app does several small uploads in a short moment so i would like to disable the ringtone sound and to hide the notifications on upload success.
These options can be managed in UploadNotificationConfig object of android-upload-service library (here the docs), but are not customizable during creation of new background-http task.
here, the lines involved in task creation:
background-http.android.ts
Do you have any suggestion on how to modify nativescript-background-http to enable these options without breaking too much the compatibility with ios platform? or maybe another way to get the same result?
thanks
The text was updated successfully, but these errors were encountered: