SendMan 1.0.6

SendMan 1.0.6

Maintained by SendMan.



SendMan 1.0.6

  • By
  • SendMan

SendMan

Version GitHub license Carthage compatible


SendMan is a push notification management service for mobile apps. This SDK allows integrating your native iOS apps with SendMan.

Installation

SendMan is available through CocoaPods or Carthage.

CocoaPods

In order to install it through CocoaPods, simply add the following line to your Podfile:

pod 'SendMan', '~> 1.0.0'

Carthage

In order to install it through Carthage, add the following line to your Cartfile, and install it as you would any other Carthage dependency:

github "sendmanio/sendman-ios-sdk" ~> 1.0.0

Integration

Prerequisites

  • SendMan supports iOS >= 10.0 as the deployment target.
  • Your app must be configured with the following capabilities:
    • Push Notifications
    • Background Modes: Remote Notifications

Steps

  1. Initializing the SDK (Get your app key and secret from the API keys screen)

    // Step 1: App-level identification: Initialize our SDK.
    SendMan.setAppConfig(SMConfig(key: YOUR_APP_KEY, andSecret: YOUR_APP_SECRET)!)
    
    // Step 2: User-level identification: Identify your users with the unique ID your application uses to identify users.
    SendMan.setUserId("some-unique-id")

    If your users do not have unique IDs, use this syntax for us to automatically handle those users for you:

    SendMan.setAppConfig(SMConfig(key: YOUR_APP_KEY, andSecret: YOUR_APP_SECRET, autoGenerateUsers: true)!)
  2. Registering for push notifications with iOS

    SendMan.requestPushAuthorization()

For a detailed integration guide (including integrating using Objective-C, tracking user interaction with notifications and storing custom user properties), head to our docs.

Author

SendMan, [email protected]

License

SendMan is available under the MIT license. See the LICENSE file for more info.