Skip to end of metadata
Go to start of metadata

While most of our customers implement our Rich Notification SDK for iOS to enable advanced notification campaign management & geo-fencing capabilities, we also have a method for you to implement only simple push within your application. We've published the steps below for iOS and we'll soon expand this section to help you do the same for your Android apps.

Remember: If you implement our complete SDK you'll have the option to send a simple push or rich notification to your devices. If you just perform the actions below, you'll only be able to send simple pushes.

Enabling Simple Push within your iOS app

We'll assume you've already sorted out your provisioning certificates with Apple (If you haven't done that yet, read: Register your application with Apple in our Rich Notification guide).  

Xtify provides a library that you can include within their xCode (iOS App) project.  For simple push-only, a limited set of Xtify functionality can be enabled such as registration with Xtify, simple push handlers and stats. You can always add our rich push capabilities and geo-location features at a later time when the need arises.  

  1. Download the Xtify iOS SDK

  2. Include the XtifyLib folder within your xCode project

    1. Open “XtifyLib > XtifyGlobal.h”

      1. Badge Management: If you want to handle badge management on your own, set the xBadgeManagerMethod parameter to “XLDeveloperManagedMethod”. Then, you can can add a simple method within your app to clear/manage the badge count

      2. Location Updates: just change xLocationRequired to “NO” (without the quotes) to turn off location updates.

    2. You will then need to add specific Xtify features within your app delegate file. Our “SampleRichWithTabs” app delegate contains an example of how to include all functionality, but for basic push, statistics, registration and badge clearing, you will need to only include these functions:

      Xtify FunctionInstance Method
      appMgr=[XLappMgr get];
      [appMgr updateAppKey:xAppKey];
      init
      [appMgr registerWithXtify:devToken ];

      didRegisterForRemoteNotificationsWithDeviceToken

      [appMgr appReceiveNotification:pushMessage];
      [appMgr setSpringBoardBadgeCount:0];

      didReceiveRemoteNotification

      [appMgr appEnterBackground];

      applicationDidEnterBackground

      [appMgr appEnterActive];

      applicationDidBecomeActive

      [appMgr appEnterForeground];

      applicationWillEnterForeground

      [appMgr launchWithOptions:application andOptions:launchOptions];
      [appMgr setSpringBoardBadgeCount:0];

      didFinishLaunchingWithOptions

      [appMgr applicationWillTerminate];

      applicationWillTerminate


iOS Simple Push App Delegate Example

Here's a snippet from an app delegate file that implements the above functions for Xtify Simple Push.

 


Labels: