diff --git a/platform/iphone/app_delegate.mm b/platform/iphone/app_delegate.mm index a4bc4de18f..e2cb603560 100644 --- a/platform/iphone/app_delegate.mm +++ b/platform/iphone/app_delegate.mm @@ -632,6 +632,9 @@ static int frame_count = 0; mainViewController = view_controller; + // prevent to stop music in another background app + [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil]; + #ifdef MODULE_GAME_ANALYTICS_ENABLED printf("********************* didFinishLaunchingWithOptions\n"); if (!Globals::get_singleton()->has("mobileapptracker/advertiser_id")) {