For android there is a method named addJavascriptInterface()
which imports an Android JAVA object to Javascript context. Is there any equivalent of it on iOS?
I have gone through some of the similar questions :
androids-addjavascriptinterface-equivalent-in-ios
calling-objective-c-function-from-javascript-in-ios-applications
But could not find a proper solution to my question .
function initiateAddCall(){
var locus = reader.getPlace().getLocus();
RoomHelper.postReaderLocus(JSON.stringify(locus));
}
RoomHelper
is the javascript handler which am using . Is there any way i can implement this (Register a javascript handler/interface in UIWebView iOS) in UIWebView
iOS .