callback - Notify webapp that the image has been successfully captured from android hybrid app -


i have below query:

scenario have developed android hybrid application, our web application hosted on remote server opened inside webview container of android.

requirement capture image camera , attach form.

limitations android cannot call methods (callback) on remote javascript. web application, being single page html5 , jquery application, cannot reloaded/navigated.

present implementation able open camera capturing url navigation event of android webview (navigation triggered on ‘attach’ button click dummy url website). still no way notify webapp image has been captured/uploaded on server. appreciated.

one way poll server @ regular intervals , check. since u cannot call remote js.

other option not preferred, reload webview(refresh current page in browser history) once u done image uploading in background native.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -