You have some options:
- hide the external links injecting css to inappbrowser, if they don't appear, then they can't be clicked
add a loadstop listener and then hide the links
app.browser.addEventListener('loadstop', hideLinks);
function hideLinks(){
app.browser.insertCSS({
code: "a { display: none; }"
}, function() {
console.log("Styles Altered");
});
}
- modify/subclass inappbrowser, changing the
shouldStartLoadWithRequest
method
change the return [self.navigationDelegate webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType];
to return NO
if the URL
isn't yours