logs & version bump

This commit is contained in:
Neeraj Gupta 2022-03-09 09:52:39 +05:30
parent 283800aafd
commit 3547412dc4
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
2 changed files with 9 additions and 3 deletions

View file

@ -209,11 +209,17 @@ Future<void> _killBGTask([String taskId]) async {
if (taskId != null) {
BackgroundFetch.finish(taskId);
}
Isolate.current.kill(priority: Isolate.immediate);
if (Platform.isIOS) {
_logger.info('avoid killing current isolate');
}
else {
_logger.info('kill current isolate');
Isolate.current.kill(priority: Isolate.immediate);
}
}
Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {
bool isRunningInFG = await _isRunningInForeground();
bool isRunningInFG = await _isRunningInForeground(); // hb
bool isInForeground = AppLifecycleService.instance.isForeground;
if (_isProcessRunning) {
_logger.info(

View file

@ -11,7 +11,7 @@ description: ente photos application
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.5.7+286
version: 0.5.8+287
environment:
sdk: ">=2.10.0 <3.0.0"