Webview on CoronaCards iOS

Hello,

New to Native iOS and CoronaCards.

I tried migrating my Corona SDK project to my iOS Project. But the webview object is refusing to be created.

after calling “webview = native.newWebView( _CX, 376.5*2, 332*2, 525*2 )”

I get webview = nil.

Is it even possible?

Thank you,

Mor

Since the idea behind CoronaCards is to add a CoronaView to an existing native app, if you want native.* objects like webViews is that you would implement them natively. No native.* API will be implemented in CoronaCards.

Rob

Thanks Rob.

That’s a bummer. It is working on Android after all.

Another issue I’m having is I cannot find any documentation on CoronaCards Swift<->Lua communication, only Obj-C here:

https://docs.coronalabs.com/coronacards/ios/communication.html

Also, it seems that there’s an error in the documentation on Androids Java<->Lua communication here:

https://docs.coronalabs.com/coronacards/android/communication.html

CoronaView view = ... Hashtable\<Object, Object\> event = new Hashtable\<Object, Object\>(); returnValue.put("otherKey", "otherValue"); returnValue.put("name", "pauseEvent"); view.sendEvent(event);

I do believe that “returnValue” should be “event”.

Since I was able to answer these questions, I figured I’ll share the answers…

  1. A good document for communicating between Swift to Lua and back can be found here:

https://coronalabs.com/blog/2014/12/09/tutorial-integrating-swift-and-coronacards/

I would recommend updating the Docs as well.

  1. The Docs do have an error in them. The variable should be “event” and not “returnValue”.

Can you click on the “Report an Issue” link at the bottom of the docs page so our team can address any issues?

Thanks

Rob

Done

Since the idea behind CoronaCards is to add a CoronaView to an existing native app, if you want native.* objects like webViews is that you would implement them natively. No native.* API will be implemented in CoronaCards.

Rob

Thanks Rob.

That’s a bummer. It is working on Android after all.

Another issue I’m having is I cannot find any documentation on CoronaCards Swift<->Lua communication, only Obj-C here:

https://docs.coronalabs.com/coronacards/ios/communication.html

Also, it seems that there’s an error in the documentation on Androids Java<->Lua communication here:

https://docs.coronalabs.com/coronacards/android/communication.html

CoronaView view = ... Hashtable\<Object, Object\> event = new Hashtable\<Object, Object\>(); returnValue.put("otherKey", "otherValue"); returnValue.put("name", "pauseEvent"); view.sendEvent(event);

I do believe that “returnValue” should be “event”.

Since I was able to answer these questions, I figured I’ll share the answers…

  1. A good document for communicating between Swift to Lua and back can be found here:

https://coronalabs.com/blog/2014/12/09/tutorial-integrating-swift-and-coronacards/

I would recommend updating the Docs as well.

  1. The Docs do have an error in them. The variable should be “event” and not “returnValue”.

Can you click on the “Report an Issue” link at the bottom of the docs page so our team can address any issues?

Thanks

Rob

Done