Custom mobile app and implement Push notify

Theerayuttu5 days ago

Hi,
We have custom mobile app from traccar-manager-app iOS & Android and need to implement Push notify also
we have create Firebase project and download google-services.json into Android project and GoogleService-Info.plist into Xcode project

for Android to add plugins and dependencies in build.gradle file
Screenshot 2025-02-18 143316.png

for Xcode after put GoogleService-Info.plist and then to enable this script on AppDelegate.swift right?
Screenshot 2568-02-18 at 14.14.35.png

Is this all we need to do? can we start build the project right away?

Theerayuttu9 hours ago

Android first, already put google-services.json and selected build variant is googleDebug

it build failed

Screenshot 2025-02-22 204638.png

Compilation error:

> Task :app:compileGoogleDebugKotlin FAILED
e: file:///C:/Users/user/.gradle/caches/transforms-3/06a85c92cb14c9b90e73303ac62102ec/transformed/play-services-measurement-api-22.2.0-api.jar!/META-INF/java.com.google.android.gmscore.integ.client.measurement_api_measurement_api.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: file:///C:/Users/user/.gradle/caches/transforms-3/764584a5dcaa928172e95dfbe0ffdd27/transformed/play-services-measurement-impl-22.2.0-api.jar!/META-INF/java.com.google.android.gms.libs.filecompliance.proto_file_access_api_type_kt_proto_lite.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: file:///C:/Users/user/.gradle/caches/transforms-3/764584a5dcaa928172e95dfbe0ffdd27/transformed/play-services-measurement-impl-22.2.0-api.jar!/META-INF/third_party.kotlin.protobuf.src.commonMain.kotlin.com.google.protobuf.kotlin_only_for_use_in_proto_generated_code_its_generator_and_tests.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: file:///C:/Users/user/.gradle/caches/transforms-3/764584a5dcaa928172e95dfbe0ffdd27/transformed/play-services-measurement-impl-22.2.0-api.jar!/META-INF/third_party.kotlin.protobuf.src.commonMain.kotlin.com.google.protobuf.kotlin_shared_runtime.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.

not sure, it wrong any dependencies version in build.gradle or am I doing something wrong?

Please help advice. Thank you.