A native iOS mobile app that demonstrates how to implement interactive push notifications.
Перейти к файлу
boevski 57bb0d6a08 Update frontmatter.yml 2016-07-15 13:11:21 +03:00
App_Resources/icons Adding an icon in the app_resources folder to enable sample building. 2015-12-02 10:56:56 +02:00
EverliveSDK.framework update to latest iOS SDK version 2016-01-22 15:23:43 +02:00
SwiftNotifications update to latest iOS SDK version 2016-01-22 15:23:43 +02:00
SwiftNotifications.xcodeproj update to latest iOS SDK version 2016-01-22 15:23:43 +02:00
SwiftNotificationsTests initial commit 2014-11-04 19:04:47 +02:00
EverliveBridge.h initial commit 2014-11-04 19:04:47 +02:00
LICENSE Added License. 2015-10-07 17:36:37 +03:00
README.md Update README.md 2016-01-22 15:24:42 +02:00
frontmatter.yml Update frontmatter.yml 2016-07-15 13:11:21 +03:00

README.md

Interactive Push Notifications Sample for iOS

Overview

This repository contains a basic sample app that allows you to register an iOS device for push notifications using custom category and UI actions. It is a native app built using XCode and Swift.

The sample app utilizes the Telerik Backend Services iOS SDK to connect the app to Telerik Platform.

Requirements

Before you begin, you need to ensure that you have the following:

  • An active Telerik Platform account Ensure that you can log in to a Telerik Platform account. This can be a free trial account.
  • SSL push certificates These come in Development or Production flavors and are issued for APNS (Apple Push Notifications Service) by Apple.
  • A Compatible XCode version XCode 5 or or later must be installed on your Mac.

Configuration

The sample app comes fully functional, but to see it in action you must link it to your own Telerik Platform account.

  1. Log in to the Telerik Platform web portal.
  2. Click your app to open it.
  3. Click the Data tab and then click Enable Data.
  4. Click the Settings tab.
  5. Take note of your App ID.
  6. In Xcode, open the SwiftNotifications/AppDelegate.swift file.
  7. Find YOUR_APP_ID and replace it with the App ID that you acquired earlier.
  8. Go back to the Telerik Platform web portal and set up push notifications in your app as explained in Enabling Push Notifications.

Running the Sample

Once the app is configured, you can run it on a real device from within Xcode.

Push notifications are not supported when running the app on device simulators.

Ensure that the device that you are using has Internet connectivity when running the sample.

Test the Sample

The custom category that the app registers is called MY_CATEGORY. To send an interactive push notification that uses it, ensure that its Category field is set to MY_CATEGORY. You can compose a push notification using either the Telerik Platform portal or the various client SDKs.

See Also

Getting Started with Push Notifications