I currently integrate a webview (webview_flutter: 2.0.4) in my application for a payment process. Unfortunately, at some point the following url is launched:
intent://payment#Intent;action=ch.twint.action.TWINT_PAYMENT;scheme=twint;S.code=18223;S.startingOrigin=EXTERNAL_WEB_BROWSER;S.browser_fallback_url=;end
This URL should launch the "twint" application (Swiss payment solution) Unfortunately it doesn't work so I'm trying to recreate the corresponding android intent (android_intent: 2.0.0) but I can't.
Can anyone help me or any other idea for a solution?
I also tried with the url_launcher extension but I don't think it's the right solution.
I don't know if you can execute native kotlin/java code when using flutter, but this can be solved (natively) by using the following code (taken from https://stackoverflow.com/a/35612860):
On Android API 30+
intent.resolveActivity
will only detect the installed twint app if you have the following entry in yourAndroidManifest.xml
: