Generate audio UIBackgroundMode


It is really annoying when I execute ionic cordova prepare ios and it auto-adds the label <string>audio</string> how to solve it? i cannot figure out what to edit to solve this problem, because Apple is rejecting me the app because I don’t remove it (I don’t need this option and don’t know where i comes from…)

Thank you



I solve it:

From ios.json on project_root/platforms/ios

            "*-Info.plist": {
        "parents": {
          "UIBackgroundModes": [
              "xml": "<array><string>audio</string></array>",
              "count": 1

Remove the item:

          "xml": "<array><string>audio</string></array>",
          "count": 1

And it won’t be added when you execute the command ionic cordova prepare ios