Installing iOS Features
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?
For more information on obtaining the P2 repository, see Obtaining the iOS Features.
Follow the instructions given below to install the iOS features via the iOS feature deployer you received via email:
Download and extract the
ios-feature-deployer
.- Copy the ios-feature-deployer folder to the
<IOTS_HOME>
directory. Navigate inside the ios-feature-deployer folder on the terminal and execute the following command to install the iOS features to WSO2 IoT.
cd ios-feature-deployer mvn clean install -f ios-feature-deployer.xml
Tip by Chris
To verify successful installation of the iOS features, do the following:
Open the
bundles.info
file found in the<IOTS-HOME>/wso2/components/default/configuration/org.eclipse.equinox.simpleconfigurator
directory and verify if the following properties have changed fromfalse
totrue
.org.wso2.carbon.device.mgt.ios.api.utils,3.0.5,../plugins/org.wso2.carbon.device.mgt.ios.api.utils_3.0.5.jar,4,true org.wso2.carbon.device.mgt.ios.apns,3.0.5,../plugins/org.wso2.carbon.device.mgt.ios.apns_3.0.5.jar,4,true org.wso2.carbon.device.mgt.ios.core,3.0.5,../plugins/org.wso2.carbon.device.mgt.ios.core_3.0.5.jar,4,true org.wso2.carbon.device.mgt.ios.payload,3.0.5,../plugins/org.wso2.carbon.device.mgt.ios.payload_3.0.5.jar,4,true org.wso2.carbon.device.mgt.ios.plugin,3.0.5,../plugins/org.wso2.carbon.device.mgt.ios.plugin_3.0.5.jar,4,true
Uncomment the
APNSBasedPushNotificationProvider
that is under thePushNotificationProviders
configuration in the<IOTS_HOME>/conf/cdm-config.xml
file.<PushNotificationProviders> <Provider>org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.MQTTBasedPushNotificationProvider</Provider> <Provider>org.wso2.carbon.device.mgt.extensions.push.notification.provider.xmpp.XMPPBasedPushNotificationProvider</Provider> <Provider>org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.GCMBasedPushNotificationProvider</Provider> <Provider>org.wso2.carbon.device.mgt.mobile.impl.ios.apns.APNSBasedPushNotificationProvider</Provider> </PushNotificationProviders>
What's next?
Next, follow the instructions given under Configuring WSO2 IoT Server with the IP or Hostname for iOS.