Media Capture Plugin context destroyed

I’m using cordova media capture plugin to record images and video but after recording app restarts and i don’t get any file in return, I tries listening to app restore event but its like its not triggered