auth basic login not working in apk
Opened this issue · 0 comments
adsonrocha commented
I am using the following code to signin inside a provider:
signIn(details): Promise<any[]>{
return new Promise((resolve, reject) => {
this.auth.login('basic', details).then(() => {
resolve();
}, (err: any) => {
reject(err);
});
});
}
I have properly imported Auth at my provider constructor.
It works when I preview on browser and Ionic View, but triggers this error after install an apk generated by "ionic build android --prod":
Error: Request has been terminated. Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is been unloaded, etc.
My internet connection is on.