Untitled
unknown
plain_text
2 years ago
1.4 kB
5
Indexable
static void checkSmarttechDeeplink(String from) {
print("******* checkSmarttechDeeplink $from excution ********");
Smartech().onHandleDeeplinkActionBackground();
Smartech().onHandleDeeplink((String? smtDeeplinkSource,
String? smtDeeplink,
Map<dynamic, dynamic>? smtPayload,
Map<dynamic, dynamic>? smtCustomPayload) async {
print('flowhere:');
print('onHandleDeeplink : $from $smtDeeplinkSource');
print('onHandleDeeplink: $from $smtDeeplink');
print('onHandleDeeplink: $from $smtPayload');
print('onHandleDeeplink: $from $smtCustomPayload');
final navi =
smtDeeplink?.replaceAll("https://www.auruminstahome.com", "");
if (navi != null) {
if (navi.contains("kyc")) {
Navigator.pushNamed(
NavigationService.navigatorKey.currentContext!,
AppRouter.kyc,
);
}
}
});
Smartech().onHandleDeeplinkAction(
(String? link, Map<dynamic, dynamic>? map) async {
print("onHandleDeeplinkAction link: $link");
print("onHandleDeeplinkAction map: $map");
final navi = link?.replaceAll("https://www.auruminstahome.com", "");
if (navi != null) {
if (navi.contains("kyc")) {
Navigator.pushNamed(
NavigationService.navigatorKey.currentContext!,
AppRouter.kyc,
);
}
}
});
}Editor is loading...