Prevent to stop music in another background app on iOS
This commit is contained in:
parent
56a5c643dd
commit
bc285b2ba4
@ -632,6 +632,9 @@ static int frame_count = 0;
|
|||||||
|
|
||||||
mainViewController = view_controller;
|
mainViewController = view_controller;
|
||||||
|
|
||||||
|
// prevent to stop music in another background app
|
||||||
|
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
|
||||||
|
|
||||||
#ifdef MODULE_GAME_ANALYTICS_ENABLED
|
#ifdef MODULE_GAME_ANALYTICS_ENABLED
|
||||||
printf("********************* didFinishLaunchingWithOptions\n");
|
printf("********************* didFinishLaunchingWithOptions\n");
|
||||||
if (!Globals::get_singleton()->has("mobileapptracker/advertiser_id")) {
|
if (!Globals::get_singleton()->has("mobileapptracker/advertiser_id")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user