transistorsoft / flutter_background_geolocation

Sophisticated, battery-conscious background-geolocation & geofencing with motion-detection
https://www.transistorsoft.com/shop/products/flutter-background-geolocation
Other
652 stars 240 forks source link

Lat long not update into server #1299

Closed PoriyaBytez closed 6 months ago

PoriyaBytez commented 6 months ago

Your Environment

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at C:\Users\Addmin\AppData\Local\Android\sdk • Platform android-34, build-tools 34.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314) • All Android licenses accepted.

[√] Chrome - develop for the web • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.32) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools • Visual Studio Build Tools 2019 version 16.11.34301.259 X The current Visual Studio installation is incomplete. Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.

[√] Android Studio (version 2023.1) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)

[√] Connected device (4 available) • Redmi Note 9 Pro (mobile) • 63752d26 • android-arm64 • Android 12 (API 31) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.4412] • Chrome (web) • chrome • web-javascript • Google Chrome 125.0.6422.0 • Edge (web) • edge • web-javascript • Microsoft Edge 124.0.2478.105

[√] Network resources • All expected network resources are available.

Expected Behavior

Update lat long into server

Actual Behavior

Same lat long update into server

Steps to Reproduce

1. 2. 3. 4.

Context

Update lat long into server when we are moving

Debug logs

Logs ``` PASTE_YOUR_LOGS_HERE ```
christocracy commented 6 months ago
        'http://roster.multitrack.in:5055/?id=${preferences.getInt('id').toString()}&lat=${location.coords.latitude.toString()}&lon=${location.coords.longitude.toString()}&speed=${location.coords.speed > 0.0 ? location.coords.speed : 0.0}',

You cannot apply a template to the Config.url.

See api docs Config.locationTemplate.

you cannot apply data to the GET ? params of an url. The plug-in sends pure JSON in the body of the http POST.