Let's take a look at the tasks that Chris, the IoT Server administrator of MobX, has to do from downloading WSO2 IoT Server to registering the iOS device of Alex, the device owner.
...
- Open the
<IoT_HOME>/core/repository/conf/app-manager.xml
file. Add
%https%
as the value for theAppDownloadURLHost
property.Code Block <Config name="AppDownloadURLHost">%https%</Config>
Tip Tip: To test WSO2 IoT Server App management features on Android devices, please use one of the following options:
- Change the value of the
AppDownloadURLHost
property back to HTTP - Continue using HTTPS to install applications on Android devices by Generating a BKS File for Android.
- Change the value of the
...
Chris proceeds to configure the iOS platform configurations by adding the generated MDM APNS certificate.
Restart the WSO2 IoT Server core profile and log in to the IoT Server Console at
https://<IoT_HOST>:9443/devicemgt
using admin as the username and password.Click Menu > CONFIGURATION MANAGEMENT > PLATFORM CONFIGURATIONS > iOS Configurations and fill in the form.
MDM Certificate Password
: Give the same password you gave when converting theMDM_APNS
certificate from thepem
to the tothepfx
format.MDM Certificate Topic ID
: Give the topic ID of the certificate.
Note Use the generated MDM-APNS certificate for both the MDM certificate and the APNS certificate.
In this tutorial, you are not installing the WSO2 IoT Server's iOS agent on the device. Therefore, you don't need to generate the APNS certificate. The APNS certificate is used to trigger operations, such as ring, notification, and iOS. If you want to trigger these operations, you need to generate the APNS certificate and upload it.
Tip Tip: To learn more about each platform setting, hover your mouse pointer over the help thehelp tip.
Creating users and a sample policy
...
Tip | ||
---|---|---|
| ||
Have you run the sample script previously when trying out the Android quick start guide ? If yes, delete the two users alex and chris, the role iotMobileUser and the sample policies that were created for Android, iOS and Windows. |
- Download the WSO2 IoT Server sample pack .
Create a directory named
samples
in the<IoT_HOME>/core
directory and copy the downloaded file to it.Navigate to the samples directory and run the command given below to copy the required content to the quick start guide setup.
Note Stop the core profile before running the commands given below.
Code Block cd <IoT_HOME>/core/samples/mobile-qsg sh copy-files.sh
Restart the core profile.
Code Block cd <IoT_HOME>/core/bin ./wso2server.sh
Run the script you just downloaded to configure the iOS server settings in WSO2 IoT Server.
Code Block cd <IoT_PRODUCT_HOME>/core/samples/mobile-qsg sh mobile-qsg.sh
...