Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Sam_K_1
Beginner
153 Views

Open url in external browser (android)

Jump to solution
  • I want to open a web page, in the user's default web browser (not inside my app).
  • built using intel xdk (3088) on windows 8
  • It does not seem to generate and error, it just does nothing.
  • I do have the device plugin added.
  • It seems to work on the emulate tab

my code:

function openLink (url) {
    intel.xdk.device.launchExternal(url);
}

openLink('https://twitter.com/');

Also tried:

  • window.open(url, '_blank');
  • window.open(url, '_system', 'location=yes');
  • window.open(url, '_blank', 'location=no');
  • adding http://* to build settings>android>whitelist>intent(allow-intent)
  • changing http://*/* to http://* in build settings>android>whitelist>intent(allow-intent)
  • adding * to build settings>android>whitelist>intent(allow-intent)
  • adding http://twitter.com/ to build settings>android>whitelist>intent(allow-intent)
  • crosswalk version 14
  • crosswalk version 15
  • unchecking 'optimize with crosswalk'
  • building an apk and installing rather than using the app preview
Tags (2)
0 Kudos
1 Solution
Rakshith_K_Intel
Employee
153 Views
  • window.open(url, '_system', 'location=yes');

is the correct option.

you also have to add the "InAppBrowser" plugin from IntelXDK -> Project settings -> plugin management -> core plugins

View solution in original post

2 Replies
Rakshith_K_Intel
Employee
154 Views
  • window.open(url, '_system', 'location=yes');

is the correct option.

you also have to add the "InAppBrowser" plugin from IntelXDK -> Project settings -> plugin management -> core plugins

View solution in original post

Sam_K_1
Beginner
153 Views

Thank you very much, both of those work.

I guess I assumed that InAppBrowser was only for opening pages inside your app. Should have read the description!

Reply