Comments (6)
Hi, try adding a custom config to specify a new PendinIntent, this work for me
`
//Create a new UploadNotificationConfig
UploadNotificationConfig config = new UploadNotificationConfig();
//Add Flag
config.setClickIntentForAllStatuses(PendingIntent.getBroadcast(context, 0, new
Intent(),PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE));
//Add to Request
new MultipartUploadRequest(RachnaDetail.this, sUrl)
.addFileToUpload(String.valueOf(sFilePath), "updcontent")
.addParameter("data", sData)
.setMaxRetries(2)
.setNotificationConfig(config)
.startUpload();
`
I hope it helps
from android-upload-service.
in the latest version I had to set it for all UploadNotificationStatusConfig
configs, because there is no method setClickIntentForAllStatuses
in UploadNotificationConfig
, at least I don't see it there..
UploadNotificationConfig(
notificationChannelId = UploadServiceConfig.defaultNotificationChannel!!,
isRingToneEnabled = false,
progress = UploadNotificationStatusConfig(
title = ...,
message = ...,
clickIntent = PendingIntent.getBroadcast(
context,
0,
Intent(),
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
)
)
from android-upload-service.
You're using version 4.5.5
. Just update to at least 4.7.0
.
from android-upload-service.
Now notification showing error during upload. how to check.
from android-upload-service.
You're using version
4.5.5
. Just update to at least4.7.0
.
Now notification showing error during upload. how to check. i searched but no solution found. also when if use
also when i want to use
implements UploadStatusDelegate
it shows cannot resolved symbol
from android-upload-service.
A way you can use to debug is with a global request observer: https://github.com/gotev/android-upload-service/wiki/Monitor-Uploads logging everything + break points for further detailed investigation
from android-upload-service.
Related Issues (20)
- Is there any way tto upload multiple files using different url in same nnotification HOT 1
- java.lang.InstantiationException HOT 1
- Initial notification ignores custom notificationHandlerFactory HOT 7
- Stop Observing from RequestObserver using unregister causing a crash. HOT 3
- Google Play will soon require that apps target API level 33 or higher. This will be required for new apps and updates starting on August 31, 2023. HOT 4
- Single notification about all ongoing uploads HOT 3
- Please add support for Android 34 HOT 4
- Java Code Samples? HOT 1
- How to get uploaded file infomation that returned by service api
- Question: Is it possible to send a HTTP request once an upload task finishes? HOT 5
- Question on crash message when closing the app: Unable to create service net.gotev.uploadservice.UploadService HOT 16
- Missing default constructor for SchemeHandler classes HOT 3
- Incompatible version of Kotlin error after upgrading to 4.9.2 HOT 3
- register gotev receiver HOT 2
- Result of uploading file HOT 1
- Bitrise CI Build Failing with New Version HOT 1
- Re-implementation using WorkManager HOT 2
- Android Upload Service for KMM (Koltin Multiplateform) HOT 2
- Add contentType to addParameter HOT 3
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 android-upload-service.