gotev/android-upload-service

Get Oncompleted callback whole appwide.

MuhammadIbrahimSE opened this issue · 4 comments

I want to get the oncompleted callback not in a specific activity, as user can navigate to some other screen, while uploading. I tried using service, but lifecycleowner is another issue in subsrcibe. Tried using broadcast receiver(in application class), but of no use when lifecycleowner itself is destroyed and broadcast not sent on complete callback.

I tried using globalRequestObserver and I am getting this error in Application class. Java.lang.IllegalArgumentException: You have to set namespace to your app package name (context.packageName) in your Application subclass

gotev commented

You are not initializing the lib properly. Please check setup info from the wiki.

@gotev thanks for guiding, fixed my issue. was registering observer before initialization.