[media pointer="file-service://file-LF6KAwkyDJNd6MbzZmctS3"]
[media pointer="file-service://file-FN66XQUngquBJGLdrS827u"]
+7
-2
Lines changed: 7 additions & 2 deletions
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:oja/new_oja/core/resources/colors/colors.dart';
import 'package:oja/new_oja/core/services/tracking_service/tracking_util.dart';
import 'package:oja/new_oja/features/auth/presentation/bloc/delete_customer_cubit/delete_customer_cubit.dart';
import 'package:salesiq_mobilisten/salesiq_mobilisten.dart';
import 'package:zoho_gc_sdk/zoho_gc_sdk.dart';
bool isEmailValid(String email) {
// Define a regex pattern for a valid email address
@@ -14,7 +15,11 @@ bool isEmailValid(String email) {
}
Future<void> openZohoGcChat() async {
ZohoGcSdk.show(
dotenv.env['ZOHO_GC_ORG_ID']!,
dotenv.env['ZOHO_GC_WIDGET_ID']!,
dotenv.env['ZOHO_GC_DOMAIN']!,
);
lib/new_oja/app/app_manager.dart
-13
Lines changed: 0 additions & 13 deletions
Original file line number Diff line number Diff line change
@@ -80,19 +80,6 @@ class AppManager {
// Initialize OjaNowFirebaseRemoteConfig
await sl<OjaNowFirebaseRemoteConfig>().initialize();
// Initialize SalesIQ
String accessKey;
if (Platform.isAndroid) {
accessKey = dotenv.env['ZOHOSALESIQ_ANDROID_ACCESS_KEY']!;
} else {
accessKey = dotenv.env['ZOHOSALESIQ_IOS_ACCESS_KEY']!;
}
ZohoSalesIQ.init(
dotenv.env['ZOHOSALESIQ_APP_KEY']!,
accessKey,
);
// Initialize AppFlyer
await sl<AppsFlyerService>().initAppsFlyer();
pubspec.yaml
+1
Lines changed: 1 addition & 0 deletions
Original file line number Diff line number Diff line change
@@ -73,6 +73,7 @@ dependencies:
sign_in_with_apple: ^6.1.3
simple_animations: ^5.0.2
url_launcher: ^6.3.1
zoho_gc_sdk: ^1.0.1
above is the git diff after integrating zoho_gc in my flutter app and it works fine
and as you can see in my screenshot i have added the appropriate flows there and it's working fine except the transfer to agent block
on my flutter app it's just saying transfering chat to agent and it's not doing anything, what might i be missing