This article describes how to make changes to the K2 Mobile for iOS app so that a modified version can be distributed through any MDM or enterprise store. Please see the Distributing K2 Mobile with Mobile Device Management (MDM) software article for an overview of deploying the mobile app with MDM software.
To distribute an app using an MDM platform, you need the unsigned K2 Mobile for iOS app. K2 provides this app to customers with a current maintenance agreement; contact your K2 representative for details. You can then make changes to the PLIST file, such as the default server value and other settings. Not every setting is exposed in the PLIST file, such as the user name and password, which are stored in the keychain following Apple’s security guidelines.
There are a number of items that you can modify within the App before redistributing within your organization. The steps for modifying the settings are as follows:
After you've made changes to the app, sign it using Xcode's command line tools on a Mac. For more information about code signing, see https://developer.apple.com/library/mac/documentation/Security/Conceptual/CodeSigningGuide/Introduct.... The signing certificate is not provided by K2.
Once you’ve signed your app, deploy it using MDM software or iTunes.
In the Settings.bundle\Root.plist file, modify the existing values to include a key for the default server value. The lines in bold should be added with your default server value, in the section as shown:
You can also change the other settings from within the app (on the app settings page), such as the Refresh Timeout, Refresh Interval, and Downloading Forms.
There are some new features in version 1.2.5 of the K2 Mobile app that can only be modified in the unsigned IPA file, including the application timeout setting and the Feedback URL. These settings are in the K2 Mobile.app\Info.plist file. Open the file and look for the following items:
There are a few things you can change to brand the K2 Mobile app to include your company's name and branded images.