Currently working on an iOS app that pulls in content from a website. Users can vote for this content by clicking a link on the webpage, which triggers a JavaScript function.
I'm interested in incorporating voting functionality directly into my app without redirecting users to the webpage and prompting them to click on the vote button.
I am aware of the method to execute a JavaScript function from a UIWebView using:
[myWebView stringByEvaluatingJavaScriptFromString:@"myJSFunction()"]
However, I find loading a UIWebView to be a lengthy process, especially for something as simple as casting a vote. Is there a more streamlined approach to calling the JavaScript function without needing user interaction (aside from tapping the vote button within the app)?
Appreciate any advice!