Error in question: `This operation is not supported in the environment this application is running on. "location.protocol" must be http or https.` This error only occurs when the app is built & running on a device. In the browser it works great (which is logical). Maybe there's a way to manually set the location.protocol on a cordova app using Ionic 2?