Giter VIP home page Giter VIP logo

Comments (6)

ubione88 avatar ubione88 commented on June 14, 2024 1

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.

palicka avatar palicka commented on June 14, 2024

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.

gotev avatar gotev commented on June 14, 2024

You're using version 4.5.5. Just update to at least 4.7.0.

from android-upload-service.

PeeyushShah avatar PeeyushShah commented on June 14, 2024

Now notification showing error during upload. how to check.

from android-upload-service.

PeeyushShah avatar PeeyushShah commented on June 14, 2024

You're using version 4.5.5. Just update to at least 4.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.

gotev avatar gotev commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.