tree: 5a7aff897a595c16cc3f0568526546ccd4527321 [path history] [tgz]
  1. ActivityFeed/
  2. Push/
  3. Readme.md
Samples/Readme.md

#UsergridSDK Sample Apps

The sample apps in this directory are intended to show basic usage of some of the major features of the UsergridSDK.

Each sample application installs the UsergridSDK by embedding the framework directly. A sample application integrating the UsergridSDK via Cocoapods will be coming in the near future.

##Samples Apps

  • ActivityFeed - An app that demonstrates a wide variety of operations within the SDK. This app also contains a companion WatchOS application.

  • Push - An app that registers for and sends push notifications.

Running the Sample Apps

To run the sample apps, simply open the <SAMPLE APP NAME>.xcworkspace file in Xcode, then run the app.

Note that some applications utilize Cocoapods (such as the ActivityFeed sample) and you will need to run the $ pod install command from within the root folder of the sample project in order for the sample to run properly.

##Configuring the Sample Apps

Before running the sample applications you will need to configure each sample application.

Each sample application should include a source file named UsergridManager.swift. This source file is used to contain interaction with the UsergridSDK within a single source file. In doing so, the interactions within the sample apps can be easily seen and examined.

Within the UsergridManager.swift source there will be at least two different static vars named ORG_ID and APP_ID. You will need to configure those values in order to run the applications in your environment.

Applications which utilize push notifications will require a valid provisioning profile and device for the push services to work correctly.