Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not get this sample to work with android emulator/device #30

Open
lexeek opened this issue Jul 13, 2017 · 1 comment
Open

I can not get this sample to work with android emulator/device #30

lexeek opened this issue Jul 13, 2017 · 1 comment

Comments

@lexeek
Copy link

lexeek commented Jul 13, 2017

As a start point I've got this sample application.

I made steps from tutorial. I can login with ios, login page opens and everything work as expected.
But I could not make login page opened on android emulator and device (both).
In Chrome Inspector (android emulator) I see this error

ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'open' of undefined
TypeError: Cannot read property 'open' of undefined
at WebView.open (file:///android_asset/www/build/main.js:116941:20)
at file:///android_asset/www/build/main.js:65196:11
at file:///android_asset/www/build/main.js:116917:12
at Object.cordova.callbackFromNative (file:///android_asset/www/cordova.js:293:58)

image

Then after long 'googling' I decided to install cordova-plugin-inappbrowser, that led to page opens. But I cant login with google because of restrictions of in-app browsers. And because of this auth0 ionic2 sample application doesn't work on android.

Don't know how to solve this...
Maybe someone can help? Could someone check this sample on android device and/or update documentation if something was missed?

@DJSitte
Copy link

DJSitte commented Jul 13, 2017

I was having the same problem while running an emulator using API version 23. I was able to get it running in an emulator with API version 25. It also worked just fine when I ran it on a physical device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants