- Download the Download the Xtify iOS SDK package.
- Make sure that the Apple Push Notification Service is enabled for your App Id (verify with Apple Provisioning Portal).
- Create an iPhone app key on the Xtify Console and upload the APN certificate.
- Open XCode and create a new iOS project.
- In order to use the iOS Rich Notification SDK, the source files from the SDK folder must be brought into the app project. The easiest way is to drag the XtifyLib folder from the local folder (e.g. ~/XtifyRich vN.n/XtifyLib) into the app XCode project. Make sure the ‘Copy items into destination group’s folder (if needed)’ is checked.
Update XtifyGlobal.h:
Replace the xAppKey with your app key
- Location Updates
Set to YES to let Xtify receive location updates from the user. The user will also receive a prompt asking for permission to do so.
Set to NO to completely turn off location updates. No prompt will appear. Suitable for simple/rich notification push only - Background Location Updates
Set this to TRUE if you want to also send location updates on significant change to Xtify while the app is in the background.
Set this to FALSE if you want to send location updates on significant change to Xtify while the app is in the foreground only. - Badge Management
Set to XLInboxManagedMethod to let the Xtify SDK manage the badge count on the client and the server based on unread rich messages
Set to XLDeveloperManagedMethod if you want to handle updating the badge on the client and server (you'll need to create your own method) - Multiple Markets
This is a premium feature that supports a regional control of messaging by multiple user governed by one primary organization account. Suitable for organizations that have multiple geographical regions or franchise business models. This feature will only work with Enterprise accounts. Please inquire with Xtify to enable this feature.
- Add the following frameworks in your project file
- Foundation.framework
- UIKit.framework
- CoreGraphics.framework
- SystemConfiguration.framework
- MapKit.framework
- CoreData.framework
- MessageUI.framework
- CoreLocation.framework
- CFNetwork.framework
- libxml2.2.dylib
- libz.1.1.3.dylib
- MobileCoreServices.framework
- In your App delegate header file (AppDelegate.h):
- Add #import "XLappMgr.h".
- Add member variable XLappMgr *appMgr; // in your AppDelegate file.
In your App Implementation file (AppDelegate.m), incorporate the member functions marked as ‘//Add or incorporate function into your Application Delegate file’.
- Add #import "XLappMgr.h".
Incorporate the Navigation Controller into the Inbox Notification SDK. You can do it in a few ways, but at the time the app starts, the navigation controller must be set, so it can display a rich notification when push notification arrives.
- Tag Management
The tag API interface allows grouping of users based on a tags so later the specific tag can be targeted for a notification using the console or the Push API. The tagging interface has the following methods: setTag, addTag and unTagsetTag - Set one or more tags to this user. All existing tags are replaced with the new tag(s). If tags array is empty, all tags get deleted.
addTag - Add one or more tags to this user. If a requested tag already exists it is skipped.
unTag - Remove one or more tags from this user. If a requested tag does not exist it is skipped.
- Compile and run.
- To test your app, create an Xtify Rich Notification
Next Section: Implement the Xtify Sample iOS Applications