initUniLinks method
Implementation
Future<bool> initUniLinks() async {
// Example deeplink
// com.nowu.app://loginMobile?token=14087f13e394b73447607a8da3828056271d4fd789fd1dc6cf5f3ba4601836295dd319a0c5e69f64
bool gotLink = false;
// Attach a listener to the stream
_sub = uriLinkStream.listen((Uri? deepLink) {
if (deepLink != null) {
gotLink = true;
_handleDeepLink(deepLink);
}
}, onError: (err) {
// Handle exception by warning the user their action did not succeed
print('D| $err');
});
// TODO: Don't forget to call _sub.cancel() in dispose()
return gotLink;
}