Giter VIP home page Giter VIP logo

Comments (5)

gotev avatar gotev commented on June 3, 2024 1

In your case you are not uploading anything to your server (if I uderstood correctly), you simply signal it's all good, so it's a regular HTTP request. What I mention in the docs is that you can't perform another file upload while in the background. OkHttp/Retrofit is another set of libraries with their own lifecycle. The ones I recommend for regular network calls on Android. You just trigger the call once the upload is successful.

from android-upload-service.

derwaldgeist avatar derwaldgeist commented on June 3, 2024 1

Just as a feedback to other users: This approach worked well. The app is able to send POST requests after an upload finishes, and I am using the GlobalOberver @gotev recommended for this. Awesome.

from android-upload-service.

gotev avatar gotev commented on June 3, 2024

You can perform the upload with Upload Service on S3 and use a GlobalRequestObserver calling your own server via a regular OkHttp/Retrofit network call in onSuccess.

from android-upload-service.

derwaldgeist avatar derwaldgeist commented on June 3, 2024

Ok, thank you so much for the fast response. And just to confirm: This OkHttp call will succeed then? I am asking because your docs state that another upload cannot be triggered in the background. So I was wondering if a GET is prevented as well.

from android-upload-service.

derwaldgeist avatar derwaldgeist commented on June 3, 2024

Ok, thanks for the clarification. Will try it out!

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.