Closed vincentdsf closed 2 years ago
I hope I didnt miss any important information, otherwise please let me know and I´ll provide all required information. As a note: I think it should work if used with the cordova-background-plugin (not the capacitor version), but maybe I just messed something up when switching to the Capacitor-Version.
The Firebase adapter hasn't yet been ported to Capacitor.
Ok got it, so all I need to do is switch back to the Cordova version - thanks for clearification! Is a future release planned for this plug-in to support capacitor plugin?
Yes, it will take a day to port once I get around to it.
Ah great to hear, thanks - looking forward to it :) For now I´ll switch back since that doesnt change too much, but I´ll switch to capacitor plugins once this one is available. Thanks for your great work
I tried switching back to the cordova-background version, but now I am getting a similar error:
"E/EventBus: Could not dispatch event: class com.transistorsoft.locationmanager.event.PersistEvent to subscribing class class com.transistorsoft.tsfirebaseproxy.TSFirebaseProxy
java.lang.RuntimeException: No properties to serialize found on class org.json.JSONObject$1
at com.google.firebase.firestore.util.CustomClassMapper$BeanMapper.
Is this related to this Plugin not yet being able to work with Capacitor or do I miss something?
Is there a quick fix I could implement to make it work for a release? Our App completely relies on this plugin for storing the GPS positions from the Background Plugin and this error is currently preventing a new release after switching to capacitor. Both the Background Plugin and the Firebase-Background Plugin are installed as their Cordova-Versions (not the Capacitor-Background-Plugin), but the error still persis
I don't know what the issue is. I suggest you remove / re-add both plugins.
Alright I tried that today, uninstalled all cordova plugins, re-installed and configured them from scratch but no luck - whenever a location is supposed to be stored the error appears and the Firebase store is not successful. I see logs about the Plugin being registered and the Background Plugin works perfectly, just the Firestore storage seems to create a problem
Update to latest capacitor (which fixed a JSON bug, I was already hoping that might fix it) didnt work, it seems the following plugin configuration just doesnt work: [info] Found 12 Capacitor plugins for android: @capacitor-community/fcm@2.0.0 @capacitor-community/firebase-analytics@1.0.0 @capacitor/app@1.0.2 @capacitor/browser@1.0.2 @capacitor/camera@1.0.3 @capacitor/device@1.0.2 @capacitor/geolocation@1.0.2 @capacitor/haptics@1.0.2 @capacitor/keyboard@1.0.2 @capacitor/push-notifications@1.0.3 @capacitor/splash-screen@1.1.0 @capacitor/status-bar@1.0.2 ⠧ update android [info] Found 5 Cordova plugins for android: cordova-background-geolocation-firebase@0.3.0 cordova-background-geolocation-lt@4.1.3 cordova-plugin-androidx-adapter@1.1.3 cordova-plugin-background-fetch@7.0.3 cordova.plugins.diagnostic@6.0.3 ✔ update android in 563.52ms
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.
Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.
I cant build an App on Android with cordova-background-geolocation-firebase in a Capacitor App, which uses the capacitor version of the background plugin. Apparently the com.transistorsoft.tsfirebaseproxy.0.1.1.aar cant be found even though I added libs folder as dependency
Your Environment
cordova -v
): "@capacitor/android": "^3.0.2" / 9.0.0 (cordova-lib@9.0.1)cordova platform ls
):#ready
: Not relevant for the Issue, I´ll post my gradle files belowExpected Behavior
Should build / Import the .aar dependency
Actual Behavior
Error when trying to build: Execution failed for task ':app:checkDebugAarMetadata'. Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find com.transistorsoft.tsfirebaseproxy:+:.
Steps to Reproduce
Trying to build an app with the following gradle files doesnt work: android/build.gradle:
app/build.gradle:
Context
Build an Capacitor Android App with capacitor-background-geolocation plugin and cordova-background-geolocation-firebase.
Debug logs
Execution failed for task ':app:checkDebugAarMetadata'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not find com.transistorsoft.tsfirebaseproxy:+:. Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
``` PASTE_YOUR_LOGS_HERE ```