0

Actually I am having my old project using Cordova in iOS but I have newly created project (updated version) is in Swift 3 (native). I need to combine these two in single app. so, I have used this pod files to load the Cordova HTML files

https://github.com/phonegap/phonegap-webview-ios

that pod is working fine in Cordova projects but what I need was to call the swift view controller from javascript click action..?

I also raised the issue in GitHub pages also

https://github.com/phonegap/phonegap-webview-ios/issues/23

is it possible to load the swift view controller from the javascript click action ?

Usually most of the guys used WKWebview but i Used Cordova so, cordova already have an WKWebview message handler, so mainly i need to use how to access that from cordova html files..

please tell if any know about it..!

3
  • yes @Luzo got it... Commented Oct 25, 2017 at 12:21
  • for objective-C implementation, check with this answer with full explaination at stackoverflow.com/questions/26202904/wkuserscript-not-working/… Commented Oct 26, 2017 at 9:41
  • yes i known about WKscript meassge handler but i need it from the cordova app.! which i installed from the pod @AnuragSoni... And i got the answer for that dude.. what i do was i just add the extra method in the objective c console longer file and i get the response from the swift class file. so i early call the swift viewcontroller.. Thanks dude.. Commented Oct 26, 2017 at 9:49

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.