Skip to content

Example application guide

Andrey Kadochnikov edited this page Jun 2, 2016 · 12 revisions

This guide is designed to get you up and running with Mobile Messaging example application

  1. Download the Mobile Messaging project.

  2. Open a terminal window, and $ cd into infobip-mobile-messaging-ios/Example directory.

  3. Integrate MobileMessaging SDK with the Example Application by running $ pod install.

  4. Open the MobileMessagingExample.xcworkspace that was created. This should be the file you use to build and run the Example Application.

  5. Replace an existing Bundle Identifier com.infobip.mobilemessaging.example with your unique Bundle Identifier.

    Change the Bundle Identifier
  6. Prepare a new App ID for the Bundle Identifier, provisioning profiles and APNs certificate (APNs Certificate Guide).

  7. Prepare your Infobip account (https://portal.infobip.com/push/) to get your Application Code:

    1. Create new application on Infobip Push portal.
    2. Navigate to your Application where you will get the Application Code.
    3. Mark the "Available on iOS" checkbox.
    4. Mark the "Sandbox" checkbox if you are using sandbox environment for the application.
    5. Click on "UPLOAD" under "APNS Certificates" and locate the .p12 certificate you exported from your Keychain earlier.
    CUP Settings
  8. Build and run the application on your iOS device. Make sure you've chosen the right scheme and device:

    Select a build scheme and device

Now you should be able to launch Push campaigns and receive push messages on your device running the Example application.

Clone this wiki locally