Skip to content

Commit

Permalink
6.4.9-rc3 (#1368)
Browse files Browse the repository at this point in the history
- Fix rare crashes on app startup
  • Loading branch information
tmolitor-stud-tu authored Jan 9, 2025
2 parents 47261ac + 593140f commit d39c644
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Monal/Classes/MonalAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,11 @@ -(id) init
_shutdownPending = NO;
_wasFrozen = NO;

//register BGTasks as early as possible to make sure a subsequent app termination
//without proper "bootup" won't crash on unknown bgtask identifiers
DDLogInfo(@"calling MonalAppDelegate configureBackgroundTasks");
[self configureBackgroundTasks];

//[self runParserTests];
//[self runSDPTests];
//[HelperTools flushLogsWithTimeout:0.250];
Expand Down Expand Up @@ -563,10 +568,6 @@ -(BOOL) application:(UIApplication*) application didFinishLaunchingWithOptions:(
//handle message notifications by initializing the MLNotificationManager
[MLNotificationManager sharedInstance];

//register BGTask
DDLogInfo(@"calling MonalAppDelegate configureBackgroundTasks");
[self configureBackgroundTasks];

// Play audio even if phone is in silent mode
[HelperTools configureDefaultAudioSession];
self.audioState = MLAudioStateNormal;
Expand Down

0 comments on commit d39c644

Please sign in to comment.