Software Archive
Read-only legacy content
17061 Discussions

Editing .plist files in the XDK

Todd_S_4
Beginner
885 Views

I ran across this thread in the old forum, and it's relevant to a problem I'm trying to solve, so I thought I would ask here. Is there an easier/better way to edit .plist files than creating a new plugin to do it as described in that thread?

0 Kudos
5 Replies
John_H_Intel2
Employee
885 Views

Currently there is no other solution, however we are exploring options with regards to this. As always, no expected date is available.

0 Kudos
Todd_S_4
Beginner
885 Views

Thanks for the update. The plugin system worked just fine for my issue, I was just wondering if there was an easier way to do it.

0 Kudos
John_H_Intel2
Employee
885 Views

Perhaps you could share your plugin system for other to use?

Maybe include a directions/steps necessary to achieve what you wanted?

Thanks!

0 Kudos
Todd_S_4
Beginner
885 Views

As it turns out, the fix I made probably didn't do anything. The Cordova Geolocation plugin actually made all the changes necessary for me. I'm not sure if my fix actually does anything, but I'll post it here anyways as a starting point for someone having the same problems.

My fix was to add the following code to intelxdk.config.additions.xml (based on this stackoverflow answer):

<config-file platform="ios" target="*-Info.plist" parent="NSLocationAlwaysUsageDescription" overwrite="false">
    <array>
        <string>NSLocationAlwaysUsageDescription</string>
    </array>
</config-file>

That does update the config xml files in the xdk, but I'm not sure that it actually affects the .plist file.

Since then, I've read that fixing permissions can also be done by creating a blank cordova plugin with the updated permissions (as described in the forum thread in my original post). Since the Geolocation plugin was able to update permissions, this solution makes sense. However, I haven't tested it.

Hopefully this helps someone.

 

0 Kudos
Declan_M_
Beginner
885 Views

I don't have an intelxdk.config.additions.xml file in my folder?

Since IOS 9 came out I need to modify the plist file according to: https://gist.github.com/mlynch/284699d676fe9ed0abfa

 

0 Kudos
Reply