Skip to content

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

@diegoanvilla

Description

@diegoanvilla

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

  • If there is a (potential) plugin conflict, I've identified the conflicting plugin
  • I have added a valid version output
  • I have attached necessary information like a screenshot, example project or videos

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions