Saurabh Mendhe

Q: Not able to execute javascript code in App-extension using JavascriptCore ?

Hi,

 

I have a use case where I need to have some javascript  code files inside the app extension to run them later in JS context inside the extension.

In the extension, I have created the UI using JS-objective C binding. Whenever I run the extension UI is render correctly as defined in the JS code but whatever action is set for the button,tap event is not getting triggered.

A catch in this is if I connect the safari JS debugger to extension JSContext I get the button callback successfully.

Can you suggest the solution on this ?

 

Thanks
Saurabh

iPhone 6s, iOS 9.3.5

Posted on Sep 6, 2016 12:20 PM