Comments (22)
Hi @christocracy,UAE customers are facing this issue. Is the plugin not working for any specific zone? Please help me with this ASAP.
from cordova-background-geolocation-lt.
java.lang.ClassNotFoundException: driverconnect.latitude247.BackgroundGeolocationHeadlessTask
Your problem has nothing to do with geography. You failed to properly configure your headless-task class.
See api docs Config.enableHeadless.
from cordova-background-geolocation-lt.
HI @christocracy ,
Thanks for your response, i have add the enableHeadless as true in ready function, still activity is getting kill, here is adb logcat
logs.txt
from cordova-background-geolocation-lt.
There's far more to enabling headless mode than enableHeadless: true.
You have to create a custom Java class. It is a very advanced feature requiring careful attention to following the Setup Instructions, as detailed in the api docs.
from cordova-background-geolocation-lt.
yeah i have created the java class file
from cordova-background-geolocation-lt.
That's your BackgroundFetch headless task.
What about the BackgroundGeolocation headless task?
from cordova-background-geolocation-lt.
shall i create BackgroundGeolocation headless task in the same folder?
from cordova-background-geolocation-lt.
Just follow the api docs Config.headlessTask for each plugin."
from cordova-background-geolocation-lt.
Followed the api doc for headlessTask, still getting the error attached the logs
logs.txt
from cordova-background-geolocation-lt.
System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "driverconnect.latitude247.BackgroundGeolocationHeadlessTask"
from cordova-background-geolocation-lt.
In BackgroundGeolocationHeadlessTask class file, do we need to update the package name?
from cordova-background-geolocation-lt.
What do the Setup Instructions tell you to do?
from cordova-background-geolocation-lt.
from cordova-background-geolocation-lt.
i am not getting any error, but still activity is getting closed
logs.txt
Uploading logs.txt…
from cordova-background-geolocation-lt.
I don't see any problems coming from the plug-in. See wiki "Debugging" and learn to use verbose logging
from cordova-background-geolocation-lt.
Hi @christocracy , here is the verbose logs, when i put application in the background.
logs.txt
from cordova-background-geolocation-lt.
I suggest you comment-out all plug-in code except for the call to .ready(config).
Those don't look anything like the plug-in's verbose logs. The plug-in's verbose logs are very colorful with heavy use of emojis.
from cordova-background-geolocation-lt.
See api docs Config.logLevel.
READ the wiki "Debugging"
from cordova-background-geolocation-lt.
here is the verbose loglevel with 5
logs.txt
from cordova-background-geolocation-lt.
I told you to disable everything but .ready. Your .watchPosition code is still running!
Also, what are you doing in your headless task?
from cordova-background-geolocation-lt.
I have commented out the other parts of the code except for '.ready,' and in the headless task, I have implemented exactly what is documented in the API, without adding any additional code to the 'headlesstask.java' file.
HeadlessTasktxt.txt
logs.txt
from cordova-background-geolocation-lt.
I see no issue with the plug-in. It is not responsible for you app being terminated. There is no exception raised and the plug-in headless-task happily runs.
I suggest you create yourself a simple hello-world app and experiment using the plug-in in isolation.
from cordova-background-geolocation-lt.
Related Issues (20)
- Missing $BACKGROUND_MODE_LOCATION in UIBackgroundModes HOT 4
- Not sending data along with the URL HOT 9
- API calls to backend server calling pending in the background mode after 5 minutes HOT 5
- [documentation] Missing wiki page "Solving Build Failures" when following a link in the REAME HOT 4
- Distance is not coming as per actual distance travelled. HOT 3
- For identical travel path total calculated distance is different from the location updates in server . HOT 18
- location updates on Android, Xiaomi HOT 3
- IOS - clang: error: linker command failed with exit code 1 (use -v to see invocation) HOT 22
- Persistent display in iOS dynamic island HOT 8
- Odometer remains 0 on one phone (Redmi 9T) out of 500 users HOT 3
- Getting Accuracy more than 100 HOT 7
- autosync not merging data after device is back on wifi HOT 3
- iOS 17 blocking requests with a 30-second timeout in the settings. HOT 9
- Build failing with plugin HOT 1
- Plugin crashing during app build HOT 5
- Android app crash in few device HOT 3
- Certificate for <developer.huawei.com> doesn't match any of the subject alternative names HOT 8
- Plugin v 4.16.1 crashed on android: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected HOT 3
- Location is not recording while in sleep mode HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-background-geolocation-lt.