Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
5 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
Highlighted
Employee
5 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
Highlighted
Beginner
5 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
Highlighted
Beginner
5 Views

0 Kudos
Highlighted
Beginner
5 Views

i use script language="Javascript" document.location = "somethingmyurl.com";
0 Kudos
Highlighted
Beginner
5 Views

Can you confirm please. This function will open a new window? window.open('http://intel.com', '_blank', '');
0 Kudos
Highlighted
Beginner
5 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
Highlighted
Employee
5 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
Highlighted
Beginner
5 Views

Thank you.
0 Kudos