Monaca how to set properties in info.plist through config.xml
For IOS to allow playback with the screen locked or background audio you have to add audio to UIBackgroundModes in the info.plist file. How do i need to do that through monaca ide. I have added the line in config.xml
<edit-config target=“UIBackgroundModes” file="*-Info.plist" mode=“merge”> <string>audio</string> </edit-config>
But its off no help. The music stops.
There is no way to get hold of the infoo.plist file so the Monaca support has suggested me this but not working.
I can see there are so many views but none can reply. Have you not faced this problem or am I doing something wrong.
Is the config option actually being added to the Info.plist or not? Finding that out should help you see what the problem is.
(By the way, ignore the view count. We tested it before and it’s definitely broken.)
@emccorson Thanks for your reply. In the Monaca there is a config.xml. Attache screenshot shows where i have written the above code. I don’t know how to check that the config option is getting added to info.plist or not.
Now I have changed the code to this
<config-file platform=“ios” parent=“UIBackgroundModes” target="*-Info.plist">
Do you think its better?