Comments (9)
locationUpdateInterval
This is Android-only option.
You need to provide logs from before what you posted.
You mention "heartbeat" but provided no code of what you're doing with it.
from cordova-background-geolocation-lt.
What would be the ideal configuration for iOS to prevent it from blocking requests?
from cordova-background-geolocation-lt.
âšī¸-[TSDBLogger db_save] Log committed
đĩ-[TSLocationManager onHeartbeat] Heartbeat
âĄī¸ TO JS {"location":{"uuid":"828D147B-B50D-45E4-976A-DC1CBBDA0E0E","battery":{"level":0.55000001192092896,"is_charging":true},"activity":{"type":"still","confidence":100},"event":"heartbeat","is_moving":false,"timestamp":"2024-02-27T19:00:49.708Z","age":0,"odomete
âĄī¸ To Native -> BackgroundGeolocation getCurrentPosition 19903765
âĄī¸ [log] - Registro - Heartbeat: {"location":{"uuid":"828D147B-B50D-45E4-976A-DC1CBBDA0E0E","battery":{"level":0.550000011920929,"is_charging":true},"activity":{"type":"still","confidence":100},"event":"heartbeat","is_moving":false,"timestamp":"2024-02-27T19:00:49.708Z","age":0,"odometer":2995.4,"extras":{},"coords":{"altitude":873.4,"ellipsoidal_altitude":0,"accuracy":23.7,"altitude_accuracy":1.4,"heading_accuracy":-1,"speed":-1,"latitude":-19.834561376805464,"speed_accuracy":-1,"longitude":-44.01713809980912,"floor":null,"heading":-1}}}
đĩ-[TSLocationManager getCurrentPosition:]
đž-[LocationManager startUpdatingLocation] ON
âĄī¸ TO JS {"odometer":2995.4000000000001,"battery":{"is_charging":true,"level":0.55000001192092896},"timestamp":"2024-02-27T19:00:12.000Z","extras":{},"is_moving":false,"age":37734,"sample":true,"uuid":"7B6B2E64-4BED-4BE1-ADFA-DA658020DBED","coords":{"ellipsoidal_al
âšī¸+[LocationAuthorization run:onCancel:] status: 3
đ<-19.83462667,-44.01698490> +/- 4.41m (speed 0.00 mps / course 113.91) @ 27/02/24, 16:00:12 Brasilia Standard Time
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â -[LocationManager locationManager:didUpdateLocations:] Sample 1 of 3 (37734 ms old)
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
đ<-19.83462667,-44.01698490> +/- 4.41m (speed 0.00 mps / course 113.91) @ 27/02/24, 16:00:20 Brasilia Standard Time
âĄī¸ To Native -> BackgroundGeolocation setConfig 19903766
âšī¸-[TSConfig persist]
âĄī¸ TO JS {"disableStopDetection":false,"maxBatchSize":-1,"locationsOrderDirection":"ASC","stopOnStationary":false,"url":"https://servicos24....","authorization":{"expires":-1,"strategy":"JWT","refreshHeaders":{"Authorization":"Bearer {acce
đ<-19.83456138,-44.01713810> +/- 23.70m (speed -1.00 mps / course -1.00) @ 27/02/24, 16:00:49 Brasilia Standard Time
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â -[LocationManager locationManager:didUpdateLocations:] Sample 2 of 3 (17 ms old)
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âĄī¸ TO JS {"battery":{"level":0.55000001192092896,"is_charging":true},"age":37782,"extras":{},"odometer":2995.4000000000001,"is_moving":false,"coords":{"accuracy":4.4000000000000004,"heading_accuracy":45.979999999999997,"floor":null,"latitude":-19.834626666288667,"s
âĄī¸ To Native -> BackgroundGeolocation setConfig 19903767
âšī¸-[TSConfig persist]
âĄī¸ TO JS {"geofenceProximityRadius":2000,"persistMode":2,"desiredAccuracy":-1,"lastLocationAuthorizationStatus":3,"params":{"veiculo_id":1,"longitude":-44.016984896775348,"user_id":1,"motorista_id":1,"data_hora":"2024-02-27 19:00:12","status":"Viagem finalizada","e
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
đ<-19.83456138,-44.01713810> +/- 23.70m (speed -1.00 mps / course -1.00) @ 27/02/24, 16:00:50 Brasilia Standard Time
đ´-[LocationManager stopUpdatingLocation] OFF
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â -[LocationManager locationManager:didUpdateLocations:] Sample 3 of 3 (12 ms old)
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âšī¸-[PolygonGeofencingService setLocation:] Already updating location
đĩ-[TSLocationManager calculateMedianLocationAccuracy:] Median location accuracy: 14.1
âšī¸-[PolygonGeofencingService setLocation:] Already updating location
âĄī¸ TO JS {"uuid":"EDCC4E26-550A-4791-9B9A-EC72F752A2C2","age":38227,"coords":{"altitude_accuracy":4,"latitude":-19.834626666288667,"speed":0,"heading_accuracy":45.979999999999997,"heading":113.91,"speed_accuracy":0.070000000000000007,"longitude":-44.016984896775348
âĄī¸ TO JS {"battery":{"is_charging":true,"level":0.55000001192092896},"age":38227,"activity":{"type":"still","confidence":100},"is_moving":false,"coords":{"altitude_accuracy":4,"speed":0,"floor":null,"heading":113.91,"speed_accuracy":0.070000000000000007,"accuracy":
âĄī¸ To Native -> BackgroundGeolocation setConfig 19903768
âĄī¸ To Native -> BackgroundGeolocation setConfig 19903769
âšī¸-[TSConfig persist]
â
-[TSLocationManager persistLocation:]_block_invoke INSERT: EDCC4E26-550A-4791-9B9A-EC72F752A2C2
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â -[TSHttpService flush:]
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â
-[BackgroundTaskManager createBackgroundTask] 8
â
-[TSHttpService schedulePost] LOCKED: 87B8CF5A-DBF5-47CD-B5AA-86EE5B149EC3
âĄī¸ TO JS {"disableStopDetection":false,"maxBatchSize":-1,"locationsOrderDirection":"ASC","stopOnStationary":false,"url":"https://servicos24...","authorization":{"expires":-1,"strategy":"JWT","refreshHeaders":{"Authorization":"Bearer {acce
âšī¸-[TSConfig persist]
âĄī¸ TO JS {"geofenceProximityRadius":2000,"persistMode":2,"desiredAccuracy":-1,"lastLocationAuthorizationStatus":3,"params":{"veiculo_id":1,"longitude":-44.016984896775348,"user_id":1,"motorista_id":1,"data_hora":"2024-02-27 19:00:12","status":"Viagem finalizada","e
âĄī¸ To Native -> BackgroundGeolocation getCount 19903770
âĄī¸ TO JS {"count":449}
ATS failed system trust
Connection 6: system TLS Trust evaluation failed(-9802)
Connection 6: TLS Trust encountered error 3:-9802
Connection 6: encountered error(3:-9802)
Task <1C1C4F6F-771B-4349-9122-0F42AFFC0021>.<1> HTTP load failed, 0/0 bytes (error code: -1200 [3:-9802])
Task <1C1C4F6F-771B-4349-9122-0F42AFFC0021>.<1> finished with error [-1200] Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorPeerCertificateChainKey=(
"<cert(0x13c822a00) s: servicos24horas.com i: R3>",
"<cert(0x13c823200) s: R3 i: ISRG Root X1>",
"<cert(0x13c814400) s: ISRG Root X1 i: DST Root CA X3>"
), NSErrorClientCertificateStateKey=0, NSErrorFailingURLKey=https://servicos24..., NSErrorFailingURLStringKey=https://servicos24..., NSUnderlyingError=0x283f2f0c0 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x2800a9360>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9802, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9802, kCFStreamPropertySSLPeerCertificates=(
"<cert(0x13c822a00) s: servicos24horas.com i: R3>",
"<cert(0x13c823200) s: R3 i: ISRG Root X1>",
"<cert(0x13c814400) s: ISRG Root X1 i: DST Root CA X3>"
)}}, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <1C1C4F6F-771B-4349-9122-0F42AFFC0021>.<1>"
), _kCFStreamErrorCodeKey=-9802, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <1C1C4F6F-771B-4349-9122-0F42AFFC0021>.<1>, NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x2800a9360>, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made.}
- An SSL error has occurred and a secure connection to the server cannot be made.
{
NSErrorClientCertificateStateKey = 0;
NSErrorFailingURLKey = "https://...";
NSErrorFailingURLStringKey = "https://...";
NSErrorPeerCertificateChainKey = (
"<cert(0x13c822a00) s: servicos24horas.com i: R3>",
"<cert(0x13c823200) s: R3 i: ISRG Root X1>",
"<cert(0x13c814400) s: ISRG Root X1 i: DST Root CA X3>"
);
NSLocalizedDescription = "An SSL error has occurred and a secure connection to the server cannot be made.";
NSLocalizedRecoverySuggestion = "Would you like to connect to the server anyway?";
NSURLErrorFailingURLPeerTrustErrorKey = "<SecTrustRef: 0x2800a9360>";
NSUnderlyingError = "Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x2800a9360>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9802, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9802, kCFStreamPropertySSLPeerCertificates=(\n "<cert(0x13c822a00) s: servicos24horas.com i: R3>",\n "<cert(0x13c823200) s: R3 i: ISRG Root X1>",\n "<cert(0x13c814400) s: ISRG Root X1 i: DST Root CA X3>"\n)}";
"_NSURLErrorFailingURLSessionTaskErrorKey" = "LocalDataTask <1C1C4F6F-771B-4349-9122-0F42AFFC0021>.<1>";
"_NSURLErrorRelatedURLSessionTaskErrorKey" = (
"LocalDataTask <1C1C4F6F-771B-4349-9122-0F42AFFC0021>.<1>"
);
"_kCFStreamErrorCodeKey" = "-9802";
"_kCFStreamErrorDomainKey" = 3;
}
â
-[TSHttpService post:]_block_invoke UNLOCKED: 87B8CF5A-DBF5-47CD-B5AA-86EE5B149EC3
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â -[TSHttpService finish:error:] Success: 0
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â
-[BackgroundTaskManager stopBackgroundTask:]_block_invoke 8 OF (
3,
8
)
âĄī¸ TO JS {"success":false,"responseText":"","status":0}
âĄī¸ [log] - Registro - Http event: {"success":false,"responseText":"","status":0}
âĄī¸ To Native -> Network getStatus 19903771
âĄī¸ TO JS {"connectionType":"wifi","connected":true}
âĄī¸ [log] - Registro - Http event convite offline: {"id":453,"status":"Viagem finalizada","origem":"belo horizonte / mg","destino":"belo horizonte / MG","material":"cobre","orientacoes":null,"data":"2024-02-27","pedido_id":34,"pedido_detalhe_id":483,"latitude":-19.834626917745762,"longitude":-44.01698456149922,"user_id":1,"motorista_id":1,"veiculo_id":1,"data_hora":"2024-02-27 19:00:06"}
âĄī¸ [error] - ERROR Error: Uncaught (in promise): [object Boolean]
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
đĩ-[BackgroundTaskManager startPreventSuspendTimer:] BG time remaining: 20 | Total tasks: 1
đĩ-[TSLocationManager onSuspend:] enabled? 1)
âšī¸-[TSDBLogger db_save] Log committed
đĩ-[BackgroundTaskManager onResume:] Current preventSuspend tasks: 1
đĩ-[TSLocationManager onResume:] enabled? 1
âšī¸-[LocationDAO purge:] 1
âšī¸-[TSDBLogger db_save] Log committed
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â -[TSHttpService flush:]
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â
-[BackgroundTaskManager createBackgroundTask] 13
â
-[TSHttpService schedulePost] LOCKED: 87B8CF5A-DBF5-47CD-B5AA-86EE5B149EC3
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/33 | isMoving: 0
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â -[TSLocationManager createMotionTypeChangedHandler]_block_invoke | still/100 | isMoving: 0
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â -[TSLocationManager createMotionTypeChangedHandler]block_invoke | still/100 | isMoving: 0
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âšī¸-[TSDBLogger db_delete] maxAge: 604800
đĩ-[TSLocationManager onHeartbeat] Heartbeat
âĄī¸ TO JS {"location":{"coords":{"accuracy":23.699999999999999,"heading_accuracy":-1,"floor":null,"latitude":-19.834561376805464,"speed_accuracy":-1,"heading":-1,"longitude":-44.017138099809117,"speed":-1,"altitude_accuracy":1.3999999999999999,"altitude":873.3999999
âĄī¸ [log] - Registro - Heartbeat: {"location":{"coords":{"accuracy":23.7,"heading_accuracy":-1,"floor":null,"latitude":-19.834561376805464,"speed_accuracy":-1,"heading":-1,"longitude":-44.01713809980912,"speed":-1,"altitude_accuracy":1.4,"altitude":873.4,"ellipsoidal_altitude":0},"uuid":"9614440B-BC1A-4727-A607-45FAA6CA77CE","timestamp":"2024-02-27T19:01:49.708Z","activity":{"confidence":100,"type":"still"},"odometer":2995.4,"battery":{"is_charging":true,"level":0.6000000238418579},"age":0,"extras":{},"event":"heartbeat","is_moving":false}}
Background Task 13 ("Called by App, from -[TSHttpService flush:]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
from cordova-background-geolocation-lt.
An SSL error has occurred and a secure connection to the server cannot be made.
Are you not concerned about that?
from cordova-background-geolocation-lt.
An SSL error has occurred and a secure connection to the server cannot be made.
Are you not concerned about that?
The application is still in the testing phase, I would like to know only why it blocked and is no longer sending locations, and if there is a way to resolve this.
from cordova-background-geolocation-lt.
What makes you think there's a problem?
from cordova-background-geolocation-lt.
If you're relying on preventSuspend to do something every 30s, it's not guaranteed to happen. You should not rely on preventSuspend, it's a brittle hack.
from cordova-background-geolocation-lt.
I think the issue might be the certificate indeed, thank you!
from cordova-background-geolocation-lt.
Resolved, I renewed the SSL certificate and enabled it, and it worked fine.
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
- The app is terminating in the background (Android). HOT 22
- Getting Accuracy more than 100 HOT 7
- autosync not merging data after device is back on wifi HOT 3
- 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.