poetic / ember-cli-cordova

A tool for creating hybrid apps using a combination of ember-cli and cordova
MIT License
441 stars 77 forks source link

How can I prevent the browser from opening when the app starts? #190

Closed litao10422 closed 8 years ago

litao10422 commented 8 years ago

I built an apk and installed it to my android phone by following the 'Getting started', the apk works, but it opens a browser while starting up, that is not what I expected.

How can I prevent the browser from opening when the app starts?

simonihmig commented 8 years ago

Probably the same issue as #174!?

alexblom commented 8 years ago

I think it is. Did that resolve for you?

litao10422 commented 8 years ago

Hi, Thank you, simonihmig, AlexBlom. I tried to add a line

 <allow-navigation href="http://10.0.2.2:4200/*" />

into /cordova/config.xml, but a browser was still opened. I made some mistakes?

[Uploading config.xml.txt…]()

screenshot_2016-03-10-12-00-20

litao10422 commented 8 years ago

hi, It works! I tried to change the line as follows:

<allow-navigation href="http://10.0.1.12:4200/*" />

since in \config\environment.js emberUrl is defined as:

emberUrl: 'http://10.1.1.12:4200‘, 

Thank you very much!

nicwillemse commented 7 years ago

Im experiencing this on device - any tips ?