body:"HA Client now support sending your device gps data to device_tracker instance created for current app integration. You can control location tracking in Configuration.",
positiveText:"Enable now",
negativeText:"Cancel",
onPositive:(){
SharedPreferences.getInstance().then((prefs){
prefs.setBool("location-enabled",true);
prefs.setBool(_locationTrackingMessageKey,true);
LocationManager().startLocationService();
LocationManager().updateDeviceLocation();
});
},
onNegative:(){
SharedPreferences.getInstance().then((prefs){
prefs.setBool(_locationTrackingMessageKey,true);
});
}
));
}
void_showSupportAppDevelopmentMessage(){
eventBus.fire(ShowPopupDialogEvent(
title:"Hi!",
body:"As you may have noticed this app contains no ads. Also all app features are available for you for free. Following the principles of free and open source softwere this will not be changed in nearest future. But still you can support this application development materially. There is several options available, please check them in main menu -> Support app development. Thanks.",