Merge pull request #12697 from volzhs/dont-stop-music

Prevent to stop music in another background app on iOS
This commit is contained in:
Rémi Verschelde 2017-11-06 12:53:53 +01:00 committed by GitHub
commit 9493d7b218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")) {