Debug Messages: Local Files and Database Cleared in Zoho Desk SDK

Debug Messages: Local Files and Database Cleared in Zoho Desk SDK

Subject: Debug Messages: Local Files and Database Cleared in Zoho Desk SDK

Hi Zoho Support Team,

I am writing to report an issue I am encountering with the Zoho Desk SDK in my Flutter application. When I attempt to present the login screen or submit a ticket, I receive the following debug messages in the console:

```
D/ZohoGC v1.0.5(17901): Local Files Cleared
D/ZohoGC v1.0.5(17901): Local Files Cleared
D/ZohoGC v1.0.5(17901): DataBase Cleared
```

Despite these messages, I am not be able to display and submit a ticket within my app. However, I am concerned about the implications of these messages and whether they indicate a deeper issue with the SDK integration.

I have ensured that all SDK initialization steps have been followed as per the documentation. Here is the relevant portion of my initialization code:

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:zohodesk_portal_apikit/zohodesk_portal_apikit.dart';
import 'package:zohodesk_portal_apikit/common/ZDPortalAPIKitConstants.dart' show ZDPDataCenter;
import 'package:zohodesk_portal_apikit/zohodesk_portal_apikit.dart' show ZohodeskPortalApikit;
import 'package:zohodesk_portal_submit_ticket/zohodesk_portal_submit_ticket.dart' show ZohodeskPortalSubmitTicket;
import 'package:zohodesk_portal_core/zohodesk_portal_core.dart' show ZohodeskPortalCore;
import 'package:zohodesk_portal_kb/zohodesk_portal_kb.dart' show ZohodeskPortalKb;
import 'package:zohodesk_portal_community/zohodesk_portal_community.dart' show ZohodeskPortalCommunity;
import 'package:zohodesk_portal_community/zohodesk_portal_community.dart' show ZohodeskPortalCommunity;
import 'package:zohodesk_portal_ticket/zohodesk_portal_ticket.dart' show ZohodeskPortalTicket;
import 'package:zohodesk_portal_chat/zohodesk_portal_chat.dart' show ZDPortalChat;
import 'package:zohodesk_portal_gc/zohodesk_portal_gc.dart' show ZDPortalGC;

void main() async {
WidgetsFlutterBinding.ensureInitialized();
await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
await _init();
runApp(MyApp());
}

Future<void> _init() async {
await _initZohoDesk();
}

Future<void> _initZohoDesk() async {
String orgId = "***********";
String appId = "***************************************************";

ZohodeskPortalApikit.initializeSDK(orgId, appId, ZDPDataCenter.EU); // todo: EU
ZohodeskPortalApikit.enableLogs();
}

class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: HomePage(),
);
}
}


class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Test Zoho Desk'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
ElevatedButton(
onPressed: () {
// Add your onPressed code here!
try {
ZohodeskPortalSubmitTicket.show().onError((error, stackTrace) => print(error));
//ZohodeskPortalCore.showHome();
//ZohodeskPortalKb.show();
//ZohodeskPortalCommunity.show();
//ZohodeskPortalCommunity.showTopicForm();
//ZohodeskPortalTicket.show();
//ZDPortalChat.show();
//ZDPortalGC.show();
print("Zoho Desk Submit Ticket shown successfully.");
} catch (e) {
print("Error showing Zoho Desk Submit Ticket: $e");
}
},
child: const Text("Help & Support"),
),
const SizedBox(height: 20),
ElevatedButton(
onPressed: () async {
try {
await ZohodeskPortalApikit.presentLoginScreen("#FFFFFF", (bool isSuccess) {
if (isSuccess) {
print("Login screen presented successfully.");
} else {
print("Failed to present login screen.");
}
});
} catch (e) {
print("Error presenting login screen: $e");
}
},
child: const Text("Login"),
),
],
),
),
),
);
}
}

I would appreciate any insights or guidance you can provide to help me understand these messages and whether any action is required to resolve potential issues.

Thank you for your assistance.