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.
Can anybody help me?
Copied from original issue: driftyco/ionic-cli#2022
From @adsonrocha on March 22, 2017 10:42
I am using the following code to signin inside a provider:
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. Can anybody help me?
Copied from original issue: driftyco/ionic-cli#2022