In-App message doesnt show in app, only receiving it as Push notification
Closed this issue · 0 comments
rajeshzmoke commented
clevertap plugin
clevertap_plugin: ^1.6.0
Template used on CT dashboard
Template:
Half Interstitial
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.7, on macOS 13.2.1 22D68 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.76.2)
[✓] Connected device (4 available)
[✓] HTTP Host Availability
• No issues found!
Clicking on notfication gives the following logs, but In-App message is not shown
V/CleverTap(24883): PostAsyncSafely Task: testInappNotification starting on...pool-24-thread-1
V/CleverTap(24883): Received in-app via push payload: { "type" : "half-interstitial" , "bg" : "#ffffff" , "tablet" : false , "close" : true , "message" : { "text" : "TEsting In App message" , "color" : "#434761" , "replacements" : "TEsting In App message" , "og" : ""} , "title" : { "text" : "In app Message" , "color" : "#434761" , "replacements" : "In app Message" , "og" : ""} , "buttons" : [ ] , "media" : { } , "isMediaSourceRecommended" : false , "recommendedText" : { "text" : "" , "replacements" : "" , "og" : ""} , "mediaLandscape" : { } , "isMediaSourceRecommendedLandscape" : false , "recommendedTextLandscape" : { "text" : "" , "replacements" : "" , "og" : ""} , "hasPortrait" : true , "hasLandscape" : false , "rounded-borders" : false}
V/CleverTap:W44-949-5Z6Z(24883): InApp: Processing response
V/CleverTap:W44-949-5Z6Z(24883): controllerManager.getInAppFCManager() is NULL, not Updating InAppFC Limits
I/CleverTapResponse(24883): Done processing response!
V/CleverTap(24883): PostAsyncSafely Task: testInappNotification executed successfully on...pool-24-thread-1
V/CleverTap(24883): PostAsyncSafely Task: InAppResponse#processResponse starting on...pool-35-thread-1
V/CleverTap(24883): PostAsyncSafely Task: InappController#showNotificationIfAvailable starting on...pool-35-thread-1
V/CleverTap:W44-949-5Z6Z(24883): checking Pending Notifications
D/CleverTap:W44-949-5Z6Z(24883): Preparing In-App for display: {"type":"half-interstitial","bg":"#ffffff","tablet":false,"close":true,"message":{"text":"TEsting In App message","color":"#434761","replacements":"TEsting In App message","og":""},"title":{"text":"In app Message","color":"#434761","replacements":"In app Message","og":""},"buttons":[],"media":{},"isMediaSourceRecommended":false,"recommendedText":{"text":"","replacements":"","og":""},"mediaLandscape":{},"isMediaSourceRecommendedLandscape":false,"recommendedTextLandscape":{"text":"","replacements":"","og":""},"hasPortrait":true,"hasLandscape":false,"rounded-borders":false}
V/CleverTap(24883): PostAsyncSafely Task: InappController#prepareNotificationForDisplay starting on...pool-35-thread-1
V/CleverTap(24883): PostAsyncSafely Task: InappController#prepareNotificationForDisplay executed successfully on...pool-35-thread-1
V/CleverTap(24883): PostAsyncSafely Task: InappController#showNotificationIfAvailable executed successfully on...pool-35-thread-1
I/flutter (24883): didChangeAppLifecycleState AppLifecycleState.resumed ConnectivityResult.wifi
V/CleverTap(24883): PostAsyncSafely Task: InAppResponse#processResponse executed successfully on...pool-35-thread-1
V/CleverTap:W44-949-5Z6Z(24883): Attempting to show next In-App
V/CleverTap:W44-949-5Z6Z(24883): Not in foreground, queueing this In App
D/CleverTap:W44-949-5Z6Z(24883): Notification ready: {"type":"half-interstitial","bg":"#ffffff","tablet":false,"close":true,"message":{"text":"TEsting In App message","color":"#434761","replacements":"TEsting In App message","og":""},"title":{"text":"In app Message","color":"#434761","replacements":"In app Message","og":""},"buttons":[],"media":{},"isMediaSourceRecommended":false,"recommendedText":{"text":"","replacements":"","og":""},"mediaLandscape":{},"isMediaSourceRecommendedLandscape":false,"recommendedTextLandscape":{"text":"","replacements":"","og":""},"hasPortrait":true,"hasLandscape":false,"rounded-borders":false}
V/CleverTap:W44-949-5Z6Z(24883): Attempting to show next In-App
V/CleverTap:W44-949-5Z6Z(24883): Not in foreground, queueing this In App
I/flutter (24883): _platformCallHandler call beforeShow {}