Example of integration PPG ios sdk with SwiftUI iOS application
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.
-
Access to Apple Developers console
-
PPG project
-
Cocoapods (or other package manager)
Approximate time of installation to run app - 15 min
-
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.
-
Clone repo and open project by iOS example integration.xcworkspace file
-
Provide PPG credentials in AppDelegate.swift - project id and api key
// Initialize PPG PPG.initializeNotifications(projectId: "YOUR PROJECT ID", apiToken: "YOUR API KEY")
-
In root folder of your iOS APP run:
$ pod install
-
Build and run APP
This test app implements registering to notifications, sending beacon, unregistering subscriber, displaying subscriber's id'