flutter inappwebview 앱링크 미동작



php .
kb pay .
flutter inappwebview

widget :
InAppWebView(
shouldOverrideUrlLoading: (controller, navigationAction) async {
final url = navigationAction.request.url.toString();
debugPrint('url : $url', );
final appScheme = ConvertUrl(url);
debugPrint('appScheme.isAppLink() : ${appScheme.isAppLink()}');
if (appScheme.isAppLink()) {
await controller.stopLoading();
debugPrint('appScheme.appScheme : ${appScheme.appScheme}');
debugPrint('appScheme.url : ${appScheme.url}');
debugPrint('appScheme.appLink : ${appScheme.appLink}');
debugPrint('appScheme.package : ${appScheme.package}');
debugPrint('await appScheme.getMarketUrl() : ${await appScheme.getMarketUrl()}');
debugPrint('await appScheme.getAppLink() : ${await appScheme.getAppLink()}');
final uri = Uri.parse(appScheme.url);
debugPrint('uri : $uri');
appScheme.launchApp();
return NavigationActionPolicy.CANCEL;
}
return NavigationActionPolicy.ALLOW;
}



:
I/flutter (11708): url : kb-acp://pay?srCode=#######&tcodeSeq=##########
I/flutter (11708): appScheme.isAppLink() : true
I/flutter (11708): ConvertUrl
I/flutter (11708): appScheme.appScheme : kb-acp
I/flutter (11708): appScheme.url : kb-acp://pay?srCode=#######&tcodeSeq=##########
I/flutter (11708): appScheme.appLink : kb-acp://pay?srCode=#######&tcodeSeq=##########
I/flutter (11708): appScheme.package : null
I/flutter (11708): Null check operator used on a null value
I/flutter (11708): #0 ConvertUrl.getMarketUrl (package:tosspayments_widget_sdk_flutter/model/tosspayments_url.dart:69:44)

:
appScheme.package가 null, ?
flutter inappwebview?
.
Was this page helpful?