Skip to content

Navigate to a screen with custom key value pairs. #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
amgugu111 opened this issue Apr 13, 2021 · 2 comments
Closed

Navigate to a screen with custom key value pairs. #35

amgugu111 opened this issue Apr 13, 2021 · 2 comments

Comments

@amgugu111
Copy link

This is where I activate the handler:

_clevertapPlugin.setCleverTapPushClickedPayloadReceivedHandler(pushClickedPayloadReceived);

This is the method I call:

pushClickedPayloadReceived(Map<String, dynamic> map) {
var route = '';
route = map["route"];
switch (route) {
case '/profile':
scheduleMicrotask(() {
return Navigator.pushReplacementNamed(context, '/profile');
});
break;
case '/wallet':
scheduleMicrotask(() {
return Navigator.pushNamed(context, '/wallet');
});
break;
default:
}
}

It doesn't work. Please help me with this @darshanclevertap @Aditi3 @piyush-kukadiya @ygit

@amgugu111
Copy link
Author

Closing the issue, fixed it.

@epynic
Copy link

epynic commented May 7, 2021

How was this fixed @amgugu111 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants