Closed Joezzy closed 1 year ago
Hi @Joezzy ,
Thanks for writing to us. Kindly verify that you have added the Zoho's maven url in your project's build.gradle/settings.gradle as mentioned in the 5th point of README.md.
allprojects {
repositories {
....
maven { url 'https://maven.zohodl.com' }
....
}
}
Please write back to us at support@zohosalesiq.com with the Github issue ID if the issue persists.
Regards,
Bhahirathan M, Zoho SalesIQ.
Hi @DavidBhahirathan , Thanks for your response but, I've done all that already, but let me just paste my code here
I'm using
PROJECT build.gradle
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
maven {
url 'https://maven.zohodl.com'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.10'
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Code in my main.dart
import 'package:salesiq_mobilisten/salesiq_mobilisten.dart';
if (io.Platform.isIOS || io.Platform.isAndroid) {
String? appKey;
String? accessKey;
if (io.Platform.isIOS) {
appKey = dotenv.env["IOS_APP_KEY"];
accessKey = dotenv.env["IOS_APP_KEY"];
} else {
appKey = dotenv.env["ANDROID_APP_KEY"];
accessKey = dotenv.env["ANDROID_ACCESS_KEY"];
}
print("APP_KEY=$appKey");
print("ACCESS_KEY=$accessKey");
ZohoSalesIQ.init(appKey!, accessKey!).then((_) {
// initialization successful
ZohoSalesIQ.showLauncher(true);
// To show the default live chat launcher, you can use the showLauncher API.
// Alternatively, you may use the 'Avail floating chat button for your app' option under Settings → Brands → Installation → Android/iOS.
}).catchError((error) {
// initialization failed
print("CATCH_ERROR :: $error");
});
}
FLUTTER DOCTOR
[✓] Flutter (Channel stable, 3.7.5, on macOS 13.2.1 22D68 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[!] Android Studio (version 2022.1)
✗ Unable to find bundled Java version.
[✓] Connected device (3 available)
[✓] HTTP Host Availability
I still get the same error ...what am I missing?
Also II noticed the version In your documentation here is still 1.0.4 while on pub.dev it is higher
@Joezzy Kindly move the Zoho's maven url into allprojects and verify it once.
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.10'
}
}
allprojects {
repositories {
google()
mavenCentral()
// Please add the maven url here
maven { url 'https://maven.zohodl.com' }
}
}
...
Hi @Joezzy ,
As there is no recent activity from your side, we're closing this issue. You can reopen this again anytime. Meanwhile, please check out latest version.
For further queries, please feel free to write us at support@zohosalesiq.com. We will be happy to assist you.
@Joezzy Kindly move the Zoho's maven url into allprojects and verify it once.
buildscript { ext.kotlin_version = '1.7.10' repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:7.2.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.google.gms:google-services:4.3.10' } } allprojects { repositories { google() mavenCentral() // Please add the maven url here maven { url 'https://maven.zohodl.com' } } } ...
It solved the issue for Android..it works now. I've still not figured out in iOS yet
I'm using
salesiq_mobilisten: ^2.0.0
ERROR: