Open salehrezaie opened 1 week ago
TSLocationManager(27596): ⚠️ Response: 403, Forbidden
Do you know what that means?
you’ll never get the location “every 5 seconds” while the device is stationary. The fastest heartbeat time will operate while stationary is 60s.
read the wiki “Philosophy of Operation”.
Your Environment
flutter doctor
):import 'dart:async'; import 'package:delivery/bloc/auth_bloc.dart'; import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg; import 'package:permission_handler/permission_handler.dart';
class GeoLocationCHandler { static Future init() async {
// Request permissions
await Permission.locationAlways.request();
await Permission.locationWhenInUse.request();
await Permission.activityRecognition.request();
} }