Custom URL Scheme, loading assets error

I’ve setup a custom URL scheme for android and iOS, so that stripe.js doesn’t throw any errors:

	"server": {
		"iosScheme": "ionic",
		"androidScheme": "ionic"
	}

This works fine and stripe.js now works fine. But now none of the ion-icons load and I get an error of:

HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

Fetch API cannot load ionic://localhost/svg/alert-circle.svg. URL scheme “ionic” is not supported.

How do I go about allowing ionic:// to an allowed URL scheme?

Thanks,
Danny

2 Likes

Same issue still here. Angular polyfills tries to load assets, by using the wrong url scheme and throwing error on native platform (tested on android so far).

One year later and the problem persist…