How To Call JavaScript Code From Obj-C Code In Cordova

Posted by Weston Ganger

Sometimes its required to call some javascript from your obj-c code for a cordova plugin or something. For example to call console.log('foo') just do the following.


[self.commandDelegate evalJs:@"console.log('foo')"];

evalJs is the successor to writeJavascript which is now deprecated.


Related External Links:

Article Topic:Software Development - Ionic

Date:February 23, 2017

Recommended Posts

Contact

604-309-8713
info@solidfoundationwebdev.com

Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected