-
Notifications
You must be signed in to change notification settings - Fork 55
Didn't Receive Push Notification #2
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
Comments
Hi @codxse It seems you are sending FCM Token to the CleverTap. FCM token is not supported on the iOS platform. Also, you can implement our method to register for Push on iOS. Code snippet for the same:
Helping link to our Example Application: https://github.com/CleverTap/clevertap-flutter/blob/master/example/lib/main.dart#L28 Thank you :) |
Thanks @Aditi3, I appreciate your answer. Yes, It turn out that I have to push APNS token first. And I successfully send the notification message to the phone. :) Here the code with super.initState();
_initPlatformState();
cp.ClevertapPlugin.getInstance().activateCleverTapFlutterPluginHandlers();
cp.CleverTapPlugin.setDebugLevel(3);
cp.CleverTapPlugin.createNotificationChannelGroup("default-group", "Default Notification Group");
cp.CleverTapPlugin.createNotificationChannel("default-channel", "Default Notification Channel", "YourChannelDescription", 3, true);
cp.CleverTapPlugin.initializeInbox();
log.i('registerFOrPush');
cp.CleverTapPlugin.registerForPush();
Future<String> initialUrl = cp.CleverTapPlugin.getInitialUrl();
initialUrl.then((String url) { log.i('CleverTap initialUrl: $initialUrl'); }); Question again. But, how do I read custom key-value? is there any method or handler to read that? |
Hi @codxse Looks like you want to handle the push notifications payload and process the user's response to a notification. Here is the link where you can find the answer to handle the notifications: The link point to the React-Native SDK but the same solution can be implemented and should be functional in the Flutter SDK. Hope this helps. |
Can you share your example code for using clevertap. because i can't see data in my dashboart. |
@bayuramadeza The repo contains an example project. Please check out the main.dart file |
@codxse Is your issue resolved or is there something we can help you with? Please let us know |
My issue has been closed, after i added region in manifest. Thanks |
Hi @bayuramadeza Great, glad to know it worked for you. |
Hi @codxse I am going to close this issue here. If you need further help please feel free to email support at [email protected]. Thank you |
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
Thank you for making such a plugin. Helping me a lot. I have question about push notification integration, especially for iOS platform. Well, I managed to integrate and push the FCMtoken to CleverTap dashboard. But I have an issue with receiving the notification, there was no notification at all, although it said "successfully sent".
I am following readme guide to integrate using
CleverTap.autoIntegrate()
.And I am initi the CleverTap on dart main function
Is there any configuration I missed?
Thank you
The text was updated successfully, but these errors were encountered: