iOS app rejected five times because of background audio setting
Ralph DiMola
rdimola at evergreeninfo.net
Mon Apr 3 16:32:06 EDT 2017
Richard,
Been down this road. Ticking the "Background Audio" option sets
UIBackgroundModes key to "audio" as well as setting
UIApplicationExitsOnSuspend=False to keep you app active. If you are not
actually playing background audio then you will get rejected. The way to do
this is to edit the app.
1) In Tools/Runtime/iOS... set all the folders to read/write.
2) Edit the setting.plist in each of the folders and change
UIApplicationExitsOnSuspend key value to "False" (or like I do...delete the
key all together)
That's it! Apple will not complain. If you need to have some apps with it on
and some with it off then make a copy of the app and change the
setting.plist's in the copy.
I only change the devices(only 2) and leave the simulators as is (I have 5
of them). If I want to test this behavior I just put the app on a device.
Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net
-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of Richard Miller via use-livecode
Sent: Monday, April 03, 2017 3:52 PM
To: How to use LiveCode
Cc: Richard Miller
Subject: iOS app rejected five times because of background audio setting
I have gone back and forth with Apple five times in an attempt to get this
setting correct. I made the mistake originally of enabling the background
audio option in the iOS standalone settings area. I was trying to prevent
the app from exiting when the user switched to a different app. I know that
this setting solves that issue, but it also caused Apple to reject my app
because I was not including any background audio.
I have since realized that the correct way to deal with this is to modify
the "exit on suspend" clause in the livecodescript file. But after creating
a new standalone and submitting it to Apple, they keep telling me I am still
referencing the backgroundaudio option. I tried making changes to the
info.plist and settings.plist files, but I can't seem to get this right.
I just downloaded a fresh copy of LC 9.0 and created a new standalone.
When I look at the info.plist file in the standalone, this is what I find:
<key>UIBackgroundModes</key>
<array>
</array>
Is this correct? Is this the way the code should read when the background
audio option is not being used?
Thanks for any help with this,
Richard Miller
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list