timbru31 / cordova-plugin-lottie-splashscreen

🐣 🎬 📱 Apache Cordova plugin to show Lottie animations as the splash screen with Airbnb's Lottie wrapper
https://www.npmjs.com/package/cordova-plugin-lottie-splashscreen
MIT License
131 stars 53 forks source link

Setting server hostame in capacitor config throws an error in IOS #697

Open diegoanvilla opened 9 months ago

diegoanvilla commented 9 months ago

To reproduce this error it is needed to set a server and hostname in the capacitor.config.json file:

{
    ...
    "server": {
        "hostname": "e.example.com",
        "allowNavigation": [
            "example.com",
            "m-example.app",
            "example.app",
            ...,
        ]
    },
    "limitsNavigationsToAppBoundDomains": true
}

It is expected for the app to render normally after the animation ends

The animation ends but the screen remains white not rendering the capacitor app

In the xcode the following error is shown:

Error: Attempted to navigate away from an app-bound domain or navigate after using restricted APIs