Created
February 1, 2019 15:42
-
-
Save ponnamkarthik/6f17f7666fa7440c67c06de2e4bfbcc4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void initState() { | |
super.initState(); | |
_retrieveDynamicLink(); | |
} | |
Future<void> _retrieveDynamicLink() async { | |
final PendingDynamicLinkData data = await FirebaseDynamicLinks.instance.retrieveDynamicLink(); | |
final Uri deepLink = data?.link; | |
if (deepLink != null) { | |
// to get the parameters we sent | |
// to get what link it is use deepLink.path | |
print(deepLink.path); | |
String code = deepLink.queryParameters['code']; | |
// perform your navigation operations here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment