'Unsupported URL error on ionic 1 (ios devices only)

Unfortunately I needed to do a project with ionic 1. I did the project. It works flawlessly for Android for Web and for iOS Web. But the project file does not work on iOS devices. After passing the Splash Screen, it gives an "unsupported URL" error no matter what page it is. I couldn't solve this problem.

I am getting this error in Xcode log:

Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" 
UserInfo={NSLocalizedFailureReason=Specified target process does not exist}

On the device this error:

Failed to load webpage with error: unsupported URL

Index.html:

<meta http-equiv="Content-Security-Policy" content="default-src * 'self' data: gap: 'unsafe-inline' 'unsafe-eval'; style-src * 'self' 'unsafe-inline' 'unsafe-eval' gap:; script-src * 'self' 'unsafe-inline' 'unsafe-eval' gap:; frame-src *;">

config.xml:

<access origin="*" />
<allow-intent href="http:///" />
<allow-intent href="https:///" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<preference name="ScrollEnabled" value="false" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="300" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="orientation" value="portrait" />
<allow-navigation href="file:///" />
<allow-navigation href="http:///" />
<allow-navigation href="https:///" />
<allow-navigation href="data:*" />
<allow-navigation href="*" />
<allow-navigation href="http://localhost:8080/*" />

Home Page link:

http://localhost:8100/#/app/firstPage


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source