-
Notifications
You must be signed in to change notification settings - Fork 55
In-App Messages shows up as notification #44
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 @epynic , campaigns which are being tested for in-app messages work as expected as above.However, live campaigns will render the in-app notifications as an in-app message rather than a notification.Thanks! |
@william-ct It is the same console error for live campaigns, are we missing something ? This is on Android using the latest clevertap plugin. Thanks |
Hi @epynic what's the superclass of your MainActivity? |
@william-ct |
@epynic Our Header and Footer InApp templates in Android are Fragments. Now Fragments are only allowed to be created on Activities that extend FragmentActivity or AppCompatActivity. Meanwhile, the base Activity of any Flutter app is FlutterActivity. FlutterActivity does not extend either of them and hence because of this technical issue, Header and Footer InApp templates will currently not work on Android via the CleverTap Flutter Plugin. Now I know this is an inconvenience for our Flutter devs, but I assure you we have started working on providing a fix for the same, unfortunately, this fix will have to be made in the CleverTap Android SDK first and then shipped into the Flutter Plugin. For the time being you can run Header/Footer InApp templates on your iOS devices or use any of our other InApp templates. I'll be marking this issue as a bug on our side and will provide proper timelines for this in the coming week. I'd like to thank you for your patience while we fix this as soon as possible. |
@darshanclevertap thank you for acknowledging , waiting for the fix! |
@epynic There is a workaround if you wish to try, you can extend your App's |
@epynic Did you try the workaround? You can check out the MainActivity of the example project for reference |
@darshanclevertap - worked like a charm! Thanks :) is there a way to handle custom key-value pair data on Button clicks ? |
@epynic Do you mean button click of the InApp notification? |
Yes, the custom key-value pair data |
Using the custom render in the manifest files
we are able to receive the InApp messagings and Push notifications, while sending custom key-pair value data is not reflected in Is there anything we am missing out ? |
@epynic No, this should be it. Are you testing it on an emulator or a device? If you're using a device, can you disable battery optimizations for your app and test it once? |
the minimal main.dart This is on android physical device there is no battery optimisations enabled. Log when the Push Notification is sent We are able to send receive notification & in-app messaging, only issue is we are unable to handle the custom key-pair values. |
@darshanclevertap - help ? |
@epynic Sorry for the delay. Can you try calling |
@darshanclevertap is the same behaviour,setCleverTapPushClickedPayloadReceivedHandler or setCleverTapInAppNotificationButtonClickedHandler are not triggered. The only way we could get this working is by removing the firebase cloud messaging plugin. |
@epynic We will be working on ensuring that Firebase cloud messaging and the CleverTap Flutter plugin do work together seamlessly but for now, this is the only way we have. Closing this for now. |
Have created an Campaign in CleverTap - Mobile In-app, Single Message
And as per the campaign preview we expect to see a pop up modal with the message,
While testing the campaign, we receive a Notification instead

The debug message in console is as below

The text was updated successfully, but these errors were encountered: