I am working with a webapp in iPhone and I have problem with calling native methods from JavaScript.
I need a value which is in my viewController class, so that I am calling native method by using window.location and in shouldStartLoadWithRequest I can find which value is needed then I will send that value by using [webView stringByEvaluatingJavaScriptFromString:userId];
Based on this value, I need to call web services in native code. This time shouldStartLoadWithRequest is not firing.
i.e simply "JS -> Native -> JS -> Native" in this case webView delegate not firing.
Would you please give me a solution for this.
webViewdelegate?