Is there any way to use Apple In App purchases from a UIWebView inside the application ?
Since i want to use a web view to load an external website and use in app purchases as payement method inside the app.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can call Objective-C methods from UIWebView. This you can do by trapping your custom urls in the
shouldStartLoadWithRequest:method. As well, you can call JS methods in HTML from Objective-C code (stringByEvaluatingJavaScriptFromString:). Details are here.I think it is possible to use Apple’s InApp purchase from inside UIWebView, though it depends on your exact requirements. As long as you use Apple’s payment gateway (so that they get their 30% cut :)) it’s okay.