website logo
HomeGo to Dashboard
User Guide
How-To Videos
Developers
Navigate through spaces
User Guide
How-To Videos
Developers
⌘K
Getting Started
Introduction
Compatibility
Terminology
SDK Installation
Shopify
Any Website
Dukaan
Angular 2+
WooCommerce
WordPress
Android Native
iOS Native
Flutter
Cordova
Ionic
React Native
Data Integration
Data Models
Mandatory Events
Mandatory Properties
Call to Action
System Events
Device Properties
Docs powered by archbee 
12min

Push Notification for iOS

Cooee delivers engagement content with Push Notification. Hence, Push Notification plays the main role with CooeeSDK. iOS needs to be set up with APNS

Follow the below steps for Push Notification setup

Add Capability to App

To get started with push notifications you will need to add the following capability to your app

  • Push Notification
  • Background Modes
  • App Group

Then you have to update Background Mode and App Group

  • Make sure to enable Background fetch, Remote notification & Background processing in Background Mode.
  • In the App Group add a group with the name group.com.letscooee.YOUR_APP_ID

Your capability window should look like below

Document image

Configure App

Now you have to update AppDelegate to let CooeeSDK know about notification action, foreground mode and deviceToken.

ObjectiveC
Swift
|

Notification Service Extension

Now you have to add Notification Service Extension to your app

  1. Once you add Notification Service Extension in the app then add the following capability in your extension
    • Push Notification
    • App Group
  2. Then you have to update App Group to make communication between your app and extension.

  3. In App Group add/enable group with the name group.com.letscooee.YOUR_APP_ID

  4. Add COOEE_APP_ID in Info.plist of your Notification Service Extension

Once you're done with the above steps; Your extension capability window should look like below

Document image

Code Update

To access CooeeSDK in your Notification Service Extension you have to update your Podfile as below

Ruby
|

Update didReceive method in NotificationService with the below code

ObjectiveC
Swift
|

That's it!! You are done with push notification integration. Now start testing your integration with Cooee Dashboard

Updated 28 Nov 2022
Did this page help you?
Yes
No
UP NEXT
Flutter
Docs powered by archbee 
TABLE OF CONTENTS
Add Capability to App
Configure App
Notification Service Extension
Code Update