handleURL method
Forward an incoming URL to Helium so it can react to External Web Checkout success/cancel redirects without waiting for the app to foreground.
iOS only; returns false on Android.
Implementation
@override
Future<bool> handleURL(String url) async {
if (!Platform.isIOS) {
return false;
}
try {
final result = await methodChannel.invokeMethod<bool>(
handleURLMethodName,
url,
);
return result ?? false;
} on PlatformException catch (e) {
log('[Helium] Failed to handle URL: ${e.message}');
return false;
}
}