Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Honda10_y_
Beginner
144 Views

New browser opened when App Launch

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. 

 

Tags (2)
0 Kudos
8 Replies
Swati_S_Intel1
Employee
144 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.

 

Honda10_y_
Beginner
144 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.
Honda10_y_
Beginner
144 Views

Honda10_y_
Beginner
144 Views

i use script language="Javascript" document.location = "somethingmyurl.com";
Honda10_y_
Beginner
144 Views

Can you confirm please. This function will open a new window? window.open('http://intel.com', '_blank', '');
Honda10_y_
Beginner
144 Views

Thanks.

This issue is fixed.

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

Please help.

Swati_S_Intel1
Employee
144 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');

 

Honda10_y_
Beginner
144 Views

Thank you.
Reply