I’m creating a Flutter app and utilizing the url_launcher package deal to open URLs. The app works wonderful on Android and older variations of iOS, however once I take a look at it on iOS 18 utilizing the simulator, the app hangs after launching the URL.
Right here’s the code I’m utilizing to launch the URL:
Future _launchURL(Uri url) async {
if (await canLaunchUrl(url)) {
await launchUrl(url);
} else {
throw 'Couldn't launch $url';
}
}
The URL launches appropriately, however instantly afterward, the app turns into unresponsive, and I’ve to cease the simulator to proceed. This concern solely happens on iOS 18; it really works wonderful on older variations.
Steps to Reproduce:
1. Set up the url_launcher package deal within the Flutter app.
2. Use the code above to launch a URL.
3. Run the app on an iOS 18 simulator.
4. Try to launch a URL.
Anticipated Conduct:
The URL ought to open, and the app ought to stay responsive.
Precise Conduct:
The URL launches, however the app hangs afterward and turns into unresponsive.
Atmosphere:
• Flutter: 3.24.3 (Steady department)
• iOS Simulator: iOS 18
• url_launcher: ^6.3.0
Has anybody else encountered this concern? Any solutions for resolving it might be drastically appreciated!
PS: The app additionally hangs once I use the signal with Google performance (additionally launching an in App browser) and Stripe checkout with PayPal performance.