Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49164

IOS: ngcordova InAppBowser plugin opens link in Webview always

$
0
0

@anil_sehgal10 wrote:

Hi All,

I am writing an ionic app in which I have to open the login page in a default browser other than the web view:
var options = {
location: 'yes',
clearcache: 'yes',
toolbar: 'yes',
closebuttoncaption: 'DONE'
};
$cordovaInAppBrowser.open('', '_system', options)
.then(function(event) {
// success
})
.catch(function(event) {
// error
});
});

$cordovaInAppBrowser.open('', '_self', options)
.then(function(event) {
// success
})
.catch(function(event) {
// error
});
});

$cordovaInAppBrowser.open('', '_blank', options)
.then(function(event) {
// success
})
.catch(function(event) {
// error
});
});

In all the above cases, the app webview navigates to the login page rather than opening the login page in a new web browser.
Interestingly, the app is working fine in ionic view with _system as the option.

The is the only issue stopping the launch. Request you to please suggest.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>