Location tracking...

This commit is contained in:
Yegor Vialov
2020-02-17 19:22:38 +00:00
parent b2686cb105
commit d9ad3b3083
5 changed files with 49 additions and 76 deletions

View File

@ -4,7 +4,6 @@ import 'dart:math';
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/material.dart';
import 'package:flutter/gestures.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:web_socket_channel/io.dart';
import 'package:event_bus/event_bus.dart';
@ -192,6 +191,10 @@ class _HAClientAppState extends State<HAClientApp> {
_subscription = purchaseUpdates.listen((purchases) {
_handlePurchaseUpdates(purchases);
});
workManager.Workmanager.initialize(
updateDeviceLocationIsolate,
isInDebugMode: false
);
super.initState();
}