Software Archive
Read-only legacy content

New browser opened when App Launch

Honda10_y_
Beginner
484 Views

Hi, I have created a new project, I copied my code across to the new project.

I have selected JQuery Mobile framework. I added my splash screen all the required tab. The default plugins are StatusBar, Device, Splashscreen.

I have unticked the "Optimize with Crosswalk"

I have left the Intent(<allow-intent>) as default (http://*/*,https://*/*, tel:*,sms:*,mailto:*,geo:*,market:*

Now I have run the build, the build was successful.

I downloaded to my Samsung S5, and opened the app. Splash screen appear ok, then the content show up. but I can see the url, it is like browser we can see the  url.

Please help. 

 

0 Kudos
8 Replies
Swati_S_Intel1
Employee
484 Views

Are you opening a system browser from within your app? Use target as _blank if you are opening an inAppBrowser instance.

window.open('http://intel.com', '_blank', '');

If that's not the case send the screenshots and your project zip file.

 

0 Kudos
Honda10_y_
Beginner
484 Views
Hi SWATI.S I want to hide the url like a native app and I also dont want to open in new window. Im using Please advice.
0 Kudos
Honda10_y_
Beginner
484 Views
0 Kudos
Honda10_y_
Beginner
484 Views
i use script language="Javascript" document.location = "somethingmyurl.com";
0 Kudos
Honda10_y_
Beginner
484 Views
Can you confirm please. This function will open a new window? window.open('http://intel.com', '_blank', '');
0 Kudos
Honda10_y_
Beginner
484 Views

Thanks.

This issue is fixed.

My other problem is https://software.intel.com/en-us/forums/intel-xdk/topic/622154

Please help.

0 Kudos
Swati_S_Intel1
Employee
484 Views

@Honda, with target '_blank', the URL you specify will be loaded in the inAppBrowser instance. With inAppBrowser you have ability to navigate back to the app. To open the URL in the Cordova webview you use '_self' as target. 

To hide the location bar in inAppBrowser instance, use location='no'. 

window.open('http://intel.com', '_blank', 'location=no');

 

0 Kudos
Honda10_y_
Beginner
484 Views
Thank you.
0 Kudos
Reply