57bb0d6a08 | ||
---|---|---|
App_Resources/icons | ||
EverliveSDK.framework | ||
SwiftNotifications | ||
SwiftNotifications.xcodeproj | ||
SwiftNotificationsTests | ||
EverliveBridge.h | ||
LICENSE | ||
README.md | ||
frontmatter.yml |
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.
- Log in to the Telerik Platform web portal.
- Click your app to open it.
- Click the Data tab and then click Enable Data.
- Click the Settings tab.
- Take note of your App ID.
- In Xcode, open the
SwiftNotifications/AppDelegate.swift
file. - Find
YOUR_APP_ID
and replace it with the App ID that you acquired earlier. - 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.