Closed Taxi4you closed 2 years ago
See CHANGELOG then scroll up. Install latest version.
How update the plugin safely? There couple of configurations that were configured in the past, which I don't remember now and concern to ruin them.
Do you want your app to be supporting iOS 14 / Android 11? Currently it's not with the version 3.6.3 that you're using.
Chris, I understand, I am not argue with you, I just ask how to upgrade to the latest version - I clearly want it to support iOS 14 and Android 11. If you kind just give me some tips of how to upgrade the plugin easily - as I said, there couple of configurations I concern to ruin. If you don't have any clue of how to upgrade the plugin easily without breaking all of the configurations, that's also okay.
I don't know what you're talking about. Upgrading is as easy as installing the latest version.
Try it on your dev device and start field-testing until you're satisfied.
but should I remove the plugin and reinstall it? or that there is a way to update without uninstalling?
but should I remove the plugin and reinstall it?
Yes. That's how you update any Cordova plugin. Remove / install.
Installing "cordova-background-geolocation-lt" for android Failed to install 'cordova-background-geolocation-lt': CordovaError: Version of installed plugin: "cordova-plugin-background-fetch@6.0.5" does not satisfy dependency plugin requirement "cordova-plugin-background-fetch@~6.1.1". Try --force to use installed plugin as dependency. at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:544:43 at processTicksAndRejections (internal/process/task_queues.js:97:5)
FYI: multi-line Syntax highlighting requires 3 backticks.
Remove cordova-plugin-background-fetch
. background-geolocation
will re-install it.
Ok, successfully installed and launched on device. A question please: before removing the plugin I have this in the config.xml:
<plugin name="cordova-background-geolocation-lt" spec="^3.9.4">
<variable name="GOOGLE_API_VERSION" value="16.+"/>
<variable name="APPCOMPAT_VERSION" value="28.+"/>
<variable name="OKHTTP_VERSION" value="3.12.+"/>
<variable name="EVENTBUS_VERSION" value="3.0.0"/>
<variable name="BACKGROUND_MODE_LOCATION" value="<string>location</string>"/>
</plugin>
Should I put this this again or not?
Cordova platform version (cordova platform ls): android 8.1.0
Are you aware that Google Play Store now requires a minimum targetSdkVersion 29
?
This requires Cordova 10.0.0 / cordova-android@9.0.0
.
So what to do?
So what to do?
$ sudo npm install -g cordova
$ cordova platform remove android
$ cordova platform add android
and then what?
Update: app is still getting closed on Android 11, Xiamo - only when location enabled in the background - no location - app not getting closed.
Also see wiki Debugging.
Still got those crashes even when upgrading to the latest version. See the marked answer of this question: https://stackoverflow.com/questions/51222082/why-do-i-get-remoteserviceexception-for-creating-updating-a-notification Maybe this is something that can help you fix the problem
Also see wiki Debugging.
Maybe this is something that can help you fix the problem
The plugin doesn't have a problem.
Ok. Let's look at the error. Usually starting at the top of the message. There should be a reference to a line in your code. If you paste some code in here. I will try to help.
Ok. Let's look at the error. Usually starting at the top of the message. There should be a reference to a line in your code. If you paste some code in here. I will try to help.
Thanks for your assist, but all I have has been posted in the first, under the Log.
Maybe this is something that can help you fix the problem
The plugin doesn't have a problem.
I also got crash that was reported in the Google Play Console:
java.lang.OutOfMemoryError
com.transistorsoft.locationmanager.logger.TSSQLiteAppender.append
Log:
java.lang.OutOfMemoryError:
at java.lang.Thread.nativeCreate (Native Method)
at java.lang.Thread.start (Thread.java:883)
at java.util.concurrent.ThreadPoolExecutor.addWorker (ThreadPoolExecutor.java:975)
at java.util.concurrent.ThreadPoolExecutor.execute (ThreadPoolExecutor.java:1393)
at com.transistorsoft.locationmanager.logger.TSSQLiteAppender.append (Unknown Source:15)
at com.transistorsoft.locationmanager.logger.TSSQLiteAppender.append (Unknown Source:2)
at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend (Unknown Source:84)
at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders (Unknown Source:15)
at ch.qos.logback.classic.Logger.appendLoopOnAppenders (Unknown Source:4)
at ch.qos.logback.classic.Logger.callAppenders (Unknown Source:5)
at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend (Unknown Source:15)
at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus (Unknown Source:28)
at ch.qos.logback.classic.Logger.warn (Unknown Source:9)
at com.transistorsoft.locationmanager.service.AbstractService.a (Unknown Source:194)
at com.transistorsoft.locationmanager.service.TrackingService.onStartCommand (Unknown Source:1)
at android.app.ActivityThread.handleServiceArgs (ActivityThread.java:4145)
at android.app.ActivityThread.access$1900 (ActivityThread.java:224)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1919)
at android.os.Handler.dispatchMessage (Handler.java:107)
at android.os.Looper.loop (Looper.java:223)
at android.app.ActivityThread.main (ActivityThread.java:7562)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:950)
java.lang.OutOfMemoryError:
at java.lang.Thread.nativeCreate (Native Method)
at java.lang.Thread.start (Thread.java:883)
at java.util.concurrent.ThreadPoolExecutor.addWorker (ThreadPoolExecutor.java:975)
at java.util.concurrent.ThreadPoolExecutor.execute (ThreadPoolExecutor.java:1393)
at com.transistorsoft.locationmanager.logger.TSSQLiteAppender.append (Unknown Source:15)
Perhaps your device is OutOfMemory
and there's not more space to add log-events in the database.
You're not actually submitting a release version of your app with LOG_LEVEL_VERBOSE
, are you?
How to know it?
Well, if you're not using the plugin's built-in http service for uploading locations to your server, the plugin is storing 3 days worth of locations in its database. In that case, you should be configuring maxRecordsToPersist: 0
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.
Your Environment
cordova -v
): 9.0.0 (cordova-lib@9.0.1)cordova platform ls
): android 8.1.0#ready
:Expected Behavior
App shouldn't get crashed or cause ANR.
Actual Behavior
Plugin (not to blame, but maybe) charges in crashing the app.
Steps to Reproduce
Context
Avoid crashes and ANRs.
Debug logs
Logs
``` # first android.app.RemoteServiceException android.app.RemoteServiceException: at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2137) at android.os.Handler.dispatchMessage (Handler.java:107) at android.os.Looper.loop (Looper.java:237) at android.app.ActivityThread.main (ActivityThread.java:7948) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1075) # second "main" prio=5 tid=1 Runnable #00 pc 00000000004117d4 /apex/com.android.runtime/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream