With Enterprise i can add button over WebView

I need to put one button into webView to user callback to app. This webview show a photo 360 degree.

How caw i do this? Has sample that do something like this?

If you have control over the HTML you can add a button in the  HTML code. It can have an anchor tag (<a href="#doSomethignInCorona">Your button</a>) with a URL that won’t do anything in the HTML.

In Corona SDK, you have a listener for the webview and it gets called when links are tapped and you should get a call back to the event (should be an example in the docs). You can then check the URL in the Corona call back and see if it matches “doSomethingInCorona” and Corona can then react to this.

This can be done in SDK, no need for Enterprise for this. With Enterprise, I don’t see why you couldn’t get a native button drawn on top of the webView and when the user interacts with that button, the native side will get an event and you can send that event back to the Lua side.  Look at the ExtendingUI sample in the Enterprise folder.

Rob

Do you have ans ExtendingUI sample for IOS? For Android i have implemented and work perfect. I need do the same for IOS.

The only samples we have are what’s there and the plugins that we open-sourced on our GitHub account:

https://github.com/coronalabs/

Rob

If you have control over the HTML you can add a button in the  HTML code. It can have an anchor tag (<a href="#doSomethignInCorona">Your button</a>) with a URL that won’t do anything in the HTML.

In Corona SDK, you have a listener for the webview and it gets called when links are tapped and you should get a call back to the event (should be an example in the docs). You can then check the URL in the Corona call back and see if it matches “doSomethingInCorona” and Corona can then react to this.

This can be done in SDK, no need for Enterprise for this. With Enterprise, I don’t see why you couldn’t get a native button drawn on top of the webView and when the user interacts with that button, the native side will get an event and you can send that event back to the Lua side.  Look at the ExtendingUI sample in the Enterprise folder.

Rob

Do you have ans ExtendingUI sample for IOS? For Android i have implemented and work perfect. I need do the same for IOS.

The only samples we have are what’s there and the plugins that we open-sourced on our GitHub account:

https://github.com/coronalabs/

Rob