Closed nandhu closed 4 years ago
cordova plugin add cordova-plugin-firebasex --variable ANDROID_FIREBASE_MESSAGING_VERSION=20.1.0
after updated ANDROID_FIREBASE_MESSAGING_VERSION, the gradle build got succeeded. let me check it further.
cordova plugin add cordova-plugin-firebasex --variable ANDROID_FIREBASE_MESSAGING_VERSION=20.1.0
after updated ANDROID_FIREBASE_MESSAGING_VERSION, the gradle build got succeeded. let me check it further.
@nandhu Updating FIREBASE_MESSAGING solved the build issue but instantVerification is set to false initially and when device receives SMS, instantVerification is set to true and the code is extracted wrongly.
Where as, earlier instantVerification is set to be true always ( in latest andriod devices) and when device receives SMS the code was getting extracted correctly.
Can anyone let me know what's the issue with updating latest version of FIREBASE_MESSAGING?
Plugin is not working anymore. I am testing with real android device and SMS is not being received by the device. I guess plugin is failing to initiate SMS sending procedure. Please, provide updates regarding the issue.
I have regression tested v9.0.0 of the plugin using the example project and SMS was received on both iOS & Android devices.
Please re-test using the example project and confirm whether you obtain the same results.
Tried to build the example project but ended up with following build errors:
BUILD FAILED in 3s
Task :app:compileDebugJavaWithJavac FAILED 24 actionable tasks: 1 executed, 23 up-to-date C:\Ionic\cordova-plugin-firebasex-test-master\cordova-plugin-firebasex-test-master\platforms\android\gradlew: Command failed with exit code 1 Error output: C:\Ionic\cordova-plugin-firebasex-test-master\cordova-plugin-firebasex-test-master\platforms\android\app\src\main\java\cordova\plugin\customfcmreceiver\CustomFCMReceiverPlugin.java:8: error: package com.google.firebase.messaging does not exist import com.google.firebase.messaging.RemoteMessage; ^ C:\Ionic\cordova-plugin-firebasex-test-master\cordova-plugin-firebasex-test-master\platforms\android\app\src\main\java\cordova\plugin\customfcmreceiver\CustomFCMReceiverPlugin.java:13: error: package org.apache.cordova.firebase does not exist import org.apache.cordova.firebase.FirebasePluginMessageReceiver; ^ C:\Ionic\cordova-plugin-firebasex-test-master\cordova-plugin-firebasex-test-master\platforms\android\app\src\main\java\cordova\plugin\customfcmreceiver\CustomFCMReceiverPlugin.java:100: error: cannot find symbol private class CustomFCMReceiver extends FirebasePluginMessageReceiver { ^ symbol: class FirebasePluginMessageReceiver location: class CustomFCMReceiverPlugin C:\Ionic\cordova-plugin-firebasex-test-master\cordova-plugin-firebasex-test-master\platforms\android\app\src\main\java\cordova\plugin\customfcmreceiver\CustomFCMReceiverPlugin.java:102: error: cannot find symbol public boolean onMessageReceived(RemoteMessage remoteMessage){ ^ symbol: class RemoteMessage location: class CustomFCMReceiverPlugin.CustomFCMReceiver C:\Ionic\cordova-plugin-firebasex-test-master\cordova-plugin-firebasex-test-master\platforms\android\app\src\main\java\cordova\plugin\customfcmreceiver\CustomFCMReceiverPlugin.java:101: error: method does not override or implement a method from a supertype @Override ^ C:\Ionic\cordova-plugin-firebasex-test-master\cordova-plugin-firebasex-test-master\platforms\android\app\src\main\java\cordova\plugin\customfcmreceiver\CustomFCMReceiverPlugin.java:116: error: method does not override or implement a method from a supertype @Override ^ Note: C:\Ionic\cordova-plugin-firebasex-test-master\cordova-plugin-firebasex-test-master\platforms\android\app\src\main\java\org\apache\cordova\dialogs\Notification.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 6 errors
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
error: package com.google.firebase.messaging does not exist
Something has gone wrong in your build with resolution of Firebase SDK dependencies via Gradle. Here's the console output from my build:
Any idea on how to overcome the build error?
Try repeating the exact same build steps as in my console output:
git clone https://github.com/dpa99c/cordova-plugin-firebasex-test
cd cordova-plugin-firebasex-test/
cp /path/to/your/google-services.json .
cordova platform add android
cordova build android
If the build fails run cordova build android --verbose
to get the detailed output of why the build failed.
I did manage to build and run the example project. Issue was that I didn't include "google-services.json" after including it I could successfully build and run the example project on my android device.
And still I am unable to receive the SMS even from the example project. PS: Tried the same with 3 phone numbers but no luck. +91 is my country code. Could you please check if the issue is country specific?
I could figure out that irrespective of phone numbers verificationId string remains the same.
Expected behavior : verificationId string should be different for different phone numbers
Bug report
Due to recent google firebase service changes gradle build is getting failed. https://firebase.google.com/support/release-notes/android#2020-01-14
Current behavior: gradle build failed.
Expected behavior: Sync with gradle should executed successfully.
Steps to reproduce:
Screenshots
Environment information
9.0.0 (cordova-lib@9.0.1)
android 8.1.0
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx" cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter" cordova-plugin-device 2.0.2 "Device" cordova-plugin-firebase-analytics 4.0.1 "FirebaseAnalyticsPlugin" cordova-plugin-firebasex 7.0.1 "Google Firebase Plugin" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 4.1.3 "cordova-plugin-ionic-webview" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-whitelist 1.3.4 "Whitelist" cordova-sqlite-storage 4.0.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version" cordova-support-android-plugin 1.0.1 "cordova-support-android-plugin" cordova-support-google-services 1.3.2 "cordova-support-google-services"
Version 1809 (OS build 17763.973)
_
Android build issue:
v10.16.3
4.10.3
Console output
ERROR: In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[20.0. 0]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown. Dependency failing: com.google.firebase:firebase-messaging:20.0.0 -> com.google.firebase:firebase-iid@[20.0.0], but fire base-iid version was 20.0.2. The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue. -- Project 'app' depends onto com.google.firebase:firebase-messaging@20.0.0 -- Project 'app' depends onto com.google.firebase:firebase-analytics@17.2.2 -- Project 'app' depends onto com.google.android.gms:play-services-measurement-api@17.2.2 -- Project 'app' depends onto com.google.firebase:firebase-config@19.0.3 -- Project 'app' depends onto com.google.firebase:firebase-analytics@17.2.1 -- Project 'app' depends onto com.google.android.gms:play-services-tagmanager-api@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-iid@20.0.2 -- Project 'app' depends onto com.google.android.gms:play-services-tagmanager@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-perf@19.0.1 -- Project 'app' depends onto com.google.firebase:firebase-analytics@17.2.+ For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b uild.gradle file.
``` // Paste any relevant JS/native console output here ```**Other information:**