MicroStrategy ONE
Preconfigure MicroStrategy Mobile for iOS
In a typical MicroStrategy Mobile deployment, a System Administrator e-mails a Mobile Configuration URL to users. This configuration URL includes information such as authentication credentials, memory limits, and homescreen preferences. The users click the configuration URL and the MicroStrategy Mobile application on their device gets configured with the appropriate connection settings for the MicroStrategy environment.
In this customization, you preconfigure MicroStrategy Mobile with the connection settings such that the users can start using MicroStrategy Mobile immediately after installing it on their devices. All the connection settings are preconfigured by the System Administrator prior to making MicroStrategy Mobile available to the users. This is accomplished by performing the steps below.
To preconfigure MicroStrategy Mobile in Xcode perform the following steps.
A detailed explanation of each of these steps is provided below.
-
Define a new configuration for MicroStrategy Mobile
Define a new configuration for MicroStrategy Mobile from the Mobile Configuration settings in MicroStrategy Mobile Server. This generates an XML mobile configuration file in the MicroStrategy/Mobile Server/WEB-INF/xml/mobile folder of your application server for MicroStrategy Mobile.
-
If you have application-level DPC (Device Passcode) setting enabled and want to use Touch ID, you need to modify the mobile configuration file as described below:
-
Look under ../WEB-INF/xml/mobile and find the mobile configuration file you need to modify. Files typically have names in the format, mobileConfig-<ConfigurationID. For example, mobileConfig-ff212bbb-9c9b-4279-83cb-30a5d6010bfb.
To identify the mobile configuration file to edit, you can use the time stamp that indicates when the file was last modified, or you can open the file and check the configuration name that is displayed on the first line, as shown in bold italics below.
<cnf n="iPad - Touch ID" cid="ff212bbb-9c9b-4279-83cb-30a5d6010bfb" v="1" bld="9.5.4004.0189J" dt="2" cntr="2">:
-
Make a copy of the mobile configuration file to use as a backup if needed.
-
Open the mobile configuration file and locate the <daip> element. Change the value from false to true, as shown below:
<daip v="true"/>
-
Save the mobile configuration file. When you recompile the application, this new configuration will be baked into the application.
-
-
If you intend to publish your rebranded application in the App Store, you need to change the URL scheme as described in Deploying Multiple MicroStrategy Mobile Projects. If you fail to do this, your custom app will conflict with the out-of-the-box MicroStrategy app for users who have downloaded both apps.
-
Set up the environment to use the MicroStrategy Mobile project
Set up the environment so that you can use the MicroStrategy Mobile project as the base for your customizations.
-
Use the new configuration file
Follow these steps to use the XML configuration file from step 1.
-
Navigate to the iPhone or iPad group—iPhone if you are customizing the application for iPhone or iPad if you are customizing the application for iPad—and delete Preferences.xml.
-
Right-click the iPhone or iPad group—iPhone if you are customizing the application for iPhone or iPad if you are customizing the application for iPad—and select Add Files to "MicroStrategyMobile". This displays a dialog for setting properties.
-
Navigate to the XML configuration file from step 1, and select the file.
-
Check the box for Copy items into destination group's folder (if needed) in the dialog. Leave all other selections as default.
-
Select the appropriate target (MicroStrategyMobileIPhone and/or MicroStrategyMobileIPad for iPhone and iPad respectively) in the Add To Targets panel, and click Add. The dialog closes.
-
Navigate to the group, iPhone (if customizing the application for iPhone) or iPad (if customizing the application for iPad), and rename the copied XML configuration file as Preferences.xml.
-
-
Build the project to confirm that it compiles and deploys successfully
-
Make sure that the appropriate scheme (MicroStrategyMobileIPhone or MicroStrategyMobileIPad for iPhone and iPad respectively) is correctly selected.
-
Click the Run button to compile and deploy the application to a simulator. Confirm that it compiles and deploys successfully.
To upload the application to a device, set the destination in the scheme to the mobile device and then build and run. For other requirements on deploying to a device, refer to documentation from Apple. You can access useful links to the Apple documentation from the Distributing iPhone or iPad Applications topic.
-
Do not enter user credentials while defining a new configuration. Users will be prompted for their credentials the first time they access the application, and their credentials will be saved for subsequent login.