IoT for Insurance Starter Application is a Sample App written in Swift
IoT for Insurance Starter Application establishes a link between internet-of-things devices, insurance companies and insurance holders. The IBM IoT for Insurance Mobile application is a reference implementation for a mobile client of the IoT4I Solution. The application allows registering new devices in the system and receiving alerts for these devices
This IoT for Insurance Starter Application is intended solely for use with an Apple iOS product and intended to be used in conjunction with officially licensed Apple development tools and further customized and distributed under the terms and conditions of your licensed Apple developer program.
- An IBM® Bluemix® account. A 30-day trial account is free.
- The IoT for Insurance service deployed in Bluemix.
- An iOS 9.0 or higher iPhone mobile device.
- Apple Xcode 7.3 or higher integrated development environment.
- CocoaPods installed on your computer. See the CocoaPods website.
- The parameters that are required to connect the mobile starter app to your instance of the service.
You need CocoaPods to install IoT4I. To install CocoaPods, run the following command:
sudo gem install cocoapods
The repository comes with a sample, the IoT4I project. To run this sample, you need:
- clone the repository:
git clone https://github.com/ibm-watson-iot/ioti-mobile.git
- Install the pods
pod install
To locate the correct values for the parameters that are required in your constants.swift file, as follows:
- In your Bluemix dashboard, select your IoT for Insurance service to display the console.
- Click Service Credentials. applicationRoute/applicationId
- Specify the bluemix service - applicationRoute/applicationId in Constants.swift (app will not compile without this parameters):
let applicationRoute = //PUT APPLICATION ROUTE HERE
let applicationId = //PUT APPLICATION CLIENTID HERE