2016-07-30 17 views
0

Ich baue eine Cordova APP für iOS und Android, die Links zu externen Websites hat, aber alle Links im System Browser öffnen und ich möchte in der APP öffnen.Cordova 6.0 externe Links

Meine Links sind einfach <a href="someURLlink"> Links. Ich habe das inappbrowser Plugin bereits installiert, aber es scheint nicht zu funktionieren.

Jede Hilfe oder Arbeitsbeispiele können mir helfen.

Antwort

0
var iab = cordova.InAppBrowser; 

iab.open('http://whitelisted-url.com');     // loads in the Cordova WebView 
iab.open('http://whitelisted-url.com', '_self');   // loads in the Cordova WebView 
iab.open('http://whitelisted-url.com', '_system');  // loads in the system browser 
iab.open('http://whitelisted-url.com', '_blank');  // loads in the InAppBrowser 
iab.open('http://whitelisted-url.com', 'random_string'); // loads in the InAppBrowser 
Verwandte Themen