Skip to content

Example of integration PPG iOS sdk with iOS SwiftUI application

Notifications You must be signed in to change notification settings

ppgco/ios-example-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

ios-example-integration

Example of integration PPG ios sdk with SwiftUI iOS application

Description

Repository contains complete APP integrated with PPG iOS native sdk. To run APP you need to provide Project ID and API KEY from PPG application panel. You also need to upload APSN certificate.

Requirements

  • Access to Apple Developers console

  • PPG project

  • Cocoapods (or other package manager)

    Approximate time of installation to run app - 15 min

Installation

  1. Generate certificate and upload it - https://docs.pushpushgo.company/application/providers/mobile-push/apns IMPORTANT - While generating certificate, you should provide the same bundle ID as it is provided in Xcode.

  2. Clone repo and open project by iOS example integration.xcworkspace file

  3. Provide PPG credentials in AppDelegate.swift - project id and api key

            // Initialize PPG
            PPG.initializeNotifications(projectId: "YOUR PROJECT ID", apiToken: "YOUR API KEY")
  4. In root folder of your iOS APP run:

    $ pod install
  5. Build and run APP

Functionalities

This test app implements registering to notifications, sending beacon, unregistering subscriber, displaying subscriber's id'

About

Example of integration PPG iOS sdk with iOS SwiftUI application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published