The P2 repository contains the feature list required to enable iOS.
If you are on a Windows OS, be sure to point the
-Dcarbon.home property in the product's startup script (
wso2server.bat) to the product's distribution home (e.g.,
-Dcarbon.home=C:\Users\VM\Desktop\wso2iot-3.0.0). Alternatively, you can also set the
carbon.home as a system property in Windows. Then, restart the server. Without this setting, you might not be able to install features through the management console.
Where do I get the P2 repository from?
After you obtained the signed CSR and submitted it, the WSO2 Account Managers will evaluate the CSR file you submitted. Once the evaluation process is complete, you will receive an email with the following:
- WSO2 MDM Connector for iOS
This contains the P2 repository with the iOS features, End User License Agreement (EULA) and the
README.txtincludes the installation instructions and the URL to the
cdmf-agent-iosrepository, which contains the agent source code.
- The signed CSR file in the .plst format
If you failed the evaluation process or have your own signed certificate, fill the Contact Us form, select IoT as the area of interest, and request for the P2 repository, which is needed to configure WSO2 IoT Server for iOS.
Follow the instruction below to install the iOS features via the P2 repository you received via email:
Only start the core profile of the WSO2 IoT Server.
- Click Features on the Configure tab.
- Click Add Repository that is on the Repository Management tab to add the repository to the server.
- Fill out the Add Repository form and click Add.
Enter a preferred name for the repository as the Name.
Select the Location.
If the local option is selected for location, you need to provide the path to the current working directory.
Follow the steps below to retrieve the path:
p2-repo.zipfile you received via email when obtaining the CSR file and navigate to the respective directory.
Retrieve the output path of the current working directory.
Click the Available Features tab and select the respective repository, and click Find Features.
If the Group features by category is selected by default, deselect it before checking for the available features.
- Select the feature and click Install.
- Click Next.
Accept the license agreement and click Next to install the features.
Once the features are successfully installed, you will be prompted to click Restart Now and Restart Later.
Until you complete step 10 and 11 don't click Restart Now.
Update the following parameters in the
.xmlfile, which is in the
Enter the server IP or the server domain name for the following parameters:
<IoTS_HOME>/core/repository/conf/iot-api-config.xmlfile and replace
localhostwith your IP or hostname.
Open the product's startup script based on your OS (i.e.,
wso2server.shfor Linux/Solaris and
wso2server.batfor Windows), which is in the
<IOT_HOME>/core/bindirectory and add the IP addresses.
APNSBasedPushNotificationProviderthat is under the
PushNotificationProvidersconfiguration in the
Navigate to the
<IoT_HOME>/core/repository/deployment/server/synapse-configs/default/apidirectory and replace
<SERVER_IP>for the files listed below:
- Go back to the IoTS Management console and click Restart Now.
Next, you need to configure the general iOS server settings.