You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the CleverTap plugin (version 2.5.0), the app inbox feature works as expected on Android, displaying messages correctly. However, on iOS, the inbox screen remains blank without showing any messages or errors.
Environment
CleverTap Plugin Version: 2.5.0
Flutter Version: 3.24.5
Dart Version: 3.5.4
Steps to Reproduce
Open the app on an iOS device.
Navigate to the Notifications screen within the app.
The inbox should load here but shows a blank screen instead.
Expected Behavior
The app inbox should display the messages as it does on Android, showing both read and unread messages accordingly.
Actual Behavior
The inbox screen is blank on iOS, with no messages displayed.
class NotificationScreen extends StatefulWidget {
const NotificationScreen({super.key});
@OverRide
State createState() => _NotificationScreenState();
}
class _NotificationScreenState extends State
with WidgetsBindingObserver {
final _cleverTapPlugin = CleverTapPlugin();
final MainController mainCtrl = Get.find();
@OverRide
void didChangeAppLifecycleState(AppLifecycleState state) {
if (state == AppLifecycleState.resumed) {
// The app is back in the foreground
Get.back(result: {'index': '0'});
log("The app has returned to the foreground");
// Handle any updates or actions you need to take
}
}
Hey @pranav-12,
Please enable debug logs using CleverTapAPI.setDebugLevel and check if you are receiving data in "inbox_notifs".
I've checked this in our sample app and inbox notifications are being shown
Description
When using the CleverTap plugin (version 2.5.0), the app inbox feature works as expected on Android, displaying messages correctly. However, on iOS, the inbox screen remains blank without showing any messages or errors.
Environment
Steps to Reproduce
Expected Behavior
The app inbox should display the messages as it does on Android, showing both read and unread messages accordingly.
Actual Behavior
The inbox screen is blank on iOS, with no messages displayed.
Code Snippet
"import 'dart:developer';
import 'package:clevertap_plugin/clevertap_plugin.dart';
import 'package:edge/features/main_screen/presentation/controllers/main_controller.dart';
import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';
class NotificationScreen extends StatefulWidget {
const NotificationScreen({super.key});
@OverRide
State createState() => _NotificationScreenState();
}
class _NotificationScreenState extends State
with WidgetsBindingObserver {
final _cleverTapPlugin = CleverTapPlugin();
final MainController mainCtrl = Get.find();
@OverRide
void initState() {
WidgetsBinding.instance.addObserver(this);
setupInboxCallbacks();
}
@OverRide
void dispose() {
WidgetsBinding.instance.removeObserver(this);
super.dispose();
}
@OverRide
void didChangeAppLifecycleState(AppLifecycleState state) {
if (state == AppLifecycleState.resumed) {
// The app is back in the foreground
Get.back(result: {'index': '0'});
log("The app has returned to the foreground");
// Handle any updates or actions you need to take
}
}
Future openInbox() async {
var styleConfig = {
'tabs': ['Read', 'Unread'],
'noMessageTextColor': '#ff6600',
'noMessageText': 'No message(s) to show.',
'navBarTitle': 'Notification',
'backgroundColor': '#ffffff',
'navBarColor': '#ffffff',
'navBarTitleColor': '#000000',
'messageTagsColor': '#0000ff',
'messageTagsBackgroundColor': '#e0e0e0',
'unselectedTabColor': '#cccccc',
'selectedTabColor': '#ff6600',
};
CleverTapPlugin.showInbox(styleConfig);
}
Future setupInboxCallbacks() async {
try {
log(" initialization...... ");
await CleverTapPlugin.initializeInbox();
}
@OverRide
Widget build(BuildContext context) {
return SizedBox();
}
}
"
Vidoes attached
Android_notification.webm
Ios_Notification.MP4
The text was updated successfully, but these errors were encountered: