You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Prevent to stop music in another background app on iOS
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user