Ionic

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

Posted by Weston Ganger on February 23, 2017

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:


Posted in Ionic and Tagged with cordova obj-c ios 


Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts