Start a new topic

looking for an event onWebsiteClosed or onBrowserClosed

looking for an event onWebsiteClosed or onBrowserClosed


Hello,

 

Is it possible to get an event as soon as a website / webview is closed which I had opened by calling AR.context.openInBrowser(url, false); ? (Currently working with the JS API for Android and iOS) 

 

I looked and double checked the JS API documentation and some threads here in the forum, but have not yet found a solution for JS. 

I would like to call / execute some JS code as soon as a webpage is closed in order to adjust a part of the AR World. 

 

Would look forward to any hint. 

 

Regards,

Berenice

 

 

Hi Berenice,
Currently we don't have such an API but thx for mentioning it. I added it to our internal list of API requests.

Meanwhile you would need to rely on Android/iOS native app APIs to detect that your 'ArchitectView Activity/ViewController' is being dismissed/shown again and then call from Java/ObjC back into JS using our callJavaScript method.

Best regards,

Andreas

 

Yes, many thanks, Andreas! I had already thought that a callback and the callJavaScript method would be the alternative way. 

 

Best regards,

Berenice
Login or Signup to post a comment