Let's say I have a UIWebView with some javascript functions. I want those javascript functions to be able to request information from my app and my app should return it. I am able to get the requests using URL Schemes however, I don't know how to return the information back to the javascript function.
Is injecting a javascript variable into the UIWebView, then calling the javascript function again with the variable as a parameter the best way to do it? Or are there methods I can use for UIWebView?