objective c - Is there a way to detect if a user completed a purchase on another website through a UIWebView in an IOS app? -


for example, forward user product page on jcpenney.com in uiwebview, , user add jcpenney.com , go through if he/she purchasing product online.

is there way me know whether or not user completed purchase?

i thinking along lines of parsing html pages user visits, , 1 might contain "order complete" string or along manner.

thanks!

if know how final page is, can analyze in of delegates methods of webview. example implemeting in class delegate of webview:

- (void)webviewdidfinishload:(uiwebview *)webview{     nsstring *mytext = [webview stringbyevaluatingjavascriptfromstring:@"document.documentelement.textcontent"];     if ([mytext rangeofstring:@"order complete"].location != nsnotfound) {         //your logic stuff     } } 

Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -