mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Prevent to stop music in another background app on iOS
This commit is contained in:
parent
802a422ad5
commit
00ce629bc6
@ -638,6 +638,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 (!ProjectSettings::get_singleton()->has("mobileapptracker/advertiser_id")) {
|
||||
|
Loading…
Reference in New Issue
Block a user