iphone - Stop iframe redirect/opening mobile safari in phonegap project -


currently have been loading page hidden iframe within phonegap project way of scraping data off mobile version of website use within app.

the problem 1 particular site has type of frame buster , sends redirect exits app , loads page in mobile safari.

is there way stop reload ? leaving ethics of scraping aside :-)

if you're using phonegap build, add config.xml file:

<preference name="stay-in-webview" value="true" /> 

if you're not using build set in cordova.plist/phongap.plist:

openallwhitelisturlsinwebview = 'yes' 

Comments

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -