Auto sync recently captured image into ionic app android

I want to sync image or video to my ionic app as soon as user captures image or video. I got many solutions to capture image from ionic app. I even got the answer for manually selecting the picture from gallery, but I do not need that.

I want to achieve something as described by below image.

I have opened the default camera app and captured an image. Just after my image capture
ShoeBox (an app) automatically start syncing that image into their app.

I want to do exactly the same. Any help would be appreciated.