mardi 4 août 2015

Cordova Android opening in browser

I have an application that I built using Cordova. I'm running into an issue where my login page opens correctly in the app but then when they click "login" the next page opens in Chrome on an Android device. I tested this on an iOS device as well and it works correctly: The second page opens in the app, not Safari. I couldn't find any threads that solve this issue so I was wondering if I'm missing something.

The code I'm using for the login is:

window.location = returnUrl;

Where returnUrl = the new url if the login is successful.

I also tried window.open(returnUrl, '_self'); which didn't work either.

Any help would be appreciated!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire