@@ -1457,45 +1457,29 @@ private command revCreateMobilePlist pSettings, pAppBundle, pTarget, pFonts, pPl
14571457 end if
14581458 -- --------
14591459
1460- local tDisplayName , tMinimumOS , tDeviceFamily , tRequiredCapabilities , tPersistentWifi , tEnableBackgroundExecution
1460+ local tDisplayName , tMinimumOS , tDeviceFamily , tRequiredCapabilities , tPersistentWifi
14611461 local tDisableATS
14621462 local tFileSharing , tPrerenderedIcon
14631463 put pSettings ["ios,display name" ] into tDisplayName
14641464 put pSettings ["ios,minimum version" ] into tMinimumOS
14651465 put pSettings ["ios,device family" ] into tDeviceFamily
14661466 put pSettings ["ios,device capabilities" ] into tRequiredCapabilities
14671467 put pSettings ["ios,persistent wifi" ] into tPersistentWifi
1468- -- MW-2011-03-10: Force this to true for now, until we can fix the engine
1469- put pSettings ["ios,enable background execution" ] into tEnableBackgroundExecution
14701468
14711469 -- AB-2017-05-31: Add more background modes
14721470 local tBackgroundModes
14731471
1474- if tEnableBackgroundExecution is empty then
1475- put "false" into tEnableBackgroundExecution
1476- end if
14771472
1478- if tEnableBackgroundExecution then
1479- put pSettings ["ios,background audio" ] into tBackgroundModes ["${PLAY_AUDIO_WHEN_IN_BACKGROUND}" ]
1480- put pSettings ["ios,background location update" ] into tBackgroundModes ["${BACKGROUND_LOCATION_UPDATE}" ]
1481- put pSettings ["ios,background voip" ] into tBackgroundModes ["${BACKGROUND_VOIP}" ]
1482- put pSettings ["ios,background newsstand downloads" ] into tBackgroundModes ["${BACKGROUND_NEWSSTAND_DOWNLOADS}" ]
1483- put pSettings ["ios,external acc comn" ] into tBackgroundModes ["${EXTERNAL_ACC_COMM}" ]
1484- put pSettings ["ios,use bt le" ] into tBackgroundModes ["${USE_BT_LE}" ]
1485- put pSettings ["ios,acts as bt le" ] into tBackgroundModes ["${ACTS_AS_BT_LE}" ]
1486- put pSettings ["ios,background fetch" ] into tBackgroundModes ["${BACKGROUND_FETCH}" ]
1487- put pSettings ["ios,remote notifications" ] into tBackgroundModes ["${REMOTE_NOTIFICATIONS}" ]
1488- else
1489- put false into tBackgroundModes ["${PLAY_AUDIO_WHEN_IN_BACKGROUND}" ]
1490- put false into tBackgroundModes ["${BACKGROUND_LOCATION_UPDATE}" ]
1491- put false into tBackgroundModes ["${BACKGROUND_VOIP}" ]
1492- put false into tBackgroundModes ["${BACKGROUND_NEWSSTAND_DOWNLOADS}" ]
1493- put false into tBackgroundModes ["${EXTERNAL_ACC_COMM}" ]
1494- put false into tBackgroundModes ["${USE_BT_LE}" ]
1495- put false into tBackgroundModes ["${ACTS_AS_BT_LE}" ]
1496- put false into tBackgroundModes ["${BACKGROUND_FETCH}" ]
1497- put false into tBackgroundModes ["${REMOTE_NOTIFICATIONS}" ]
1498- end if
1473+ put pSettings ["ios,background audio" ] into tBackgroundModes ["${PLAY_AUDIO_WHEN_IN_BACKGROUND}" ]
1474+ put pSettings ["ios,background location update" ] into tBackgroundModes ["${BACKGROUND_LOCATION_UPDATE}" ]
1475+ put pSettings ["ios,background voip" ] into tBackgroundModes ["${BACKGROUND_VOIP}" ]
1476+ put pSettings ["ios,background newsstand downloads" ] into tBackgroundModes ["${BACKGROUND_NEWSSTAND_DOWNLOADS}" ]
1477+ put pSettings ["ios,external acc comn" ] into tBackgroundModes ["${EXTERNAL_ACC_COMM}" ]
1478+ put pSettings ["ios,use bt le" ] into tBackgroundModes ["${USE_BT_LE}" ]
1479+ put pSettings ["ios,acts as bt le" ] into tBackgroundModes ["${ACTS_AS_BT_LE}" ]
1480+ put pSettings ["ios,background fetch" ] into tBackgroundModes ["${BACKGROUND_FETCH}" ]
1481+ put pSettings ["ios,remote notifications" ] into tBackgroundModes ["${REMOTE_NOTIFICATIONS}" ]
1482+
14991483 put pSettings ["ios,file sharing" ] into tFileSharing
15001484 put pSettings ["ios,prerendered icon" ] into tPrerenderedIcon
15011485
@@ -1701,7 +1685,6 @@ private command revCreateMobilePlist pSettings, pAppBundle, pTarget, pFonts, pPl
17011685 replace "${DEVICE_CAPABILITY}" with it in pPlist
17021686
17031687 replace "${PERSISTENT_WIFI}" with "<" & tPersistentWifi & "/>" in pPlist
1704- replace "${APPLICATION_EXITS_ON_SUSPEND}" with "<" & not tEnableBackgroundExecution & "/>" in pPlist
17051688 replace "${FILE_SHARING}" with "<" & tFileSharing & "/>" in pPlist
17061689 replace "${PRE_RENDERED_ICON}" with "<" & tPrerenderedIcon & "/>" in pPlist
17071690
0 commit comments