iOS SDK¶
The PlingBuddy iOS SDK registers your app's devices with PlingBuddy, keeps them in sync, and reports what happens to the service's notifications. It's written in Swift, uses APNs directly, and has no other dependencies.
It has two modules:
PlingBuddySDK, for the app;PlingBuddyExtension, small enough for the app's optional Notification Service Extension.
It needs iOS 15 or later.
Before you install it, create your app's application in the PlingBuddy dashboard and add its Apple connection; Getting started walks through it.
Install¶
The SDK isn't published yet, so the app builds it from a checkout of the plingbuddy-sdks repository. With CocoaPods, add both pods with a path:
Ruby (Podfile)
target 'MyApp' do
use_frameworks!
pod 'PlingBuddySDK', :path => 'path/to/plingbuddy-sdks/ios'
pod 'PlingBuddyExtension', :path => 'path/to/plingbuddy-sdks/ios'
end
The repository's root is also a Swift package with the products PlingBuddySDK and PlingBuddyExtension, which Xcode can add as a local package.
Next steps¶
- Setup: the Push Notifications capability, starting the SDK and asking for permission.
- Users and data: signing users in and out, and the data you can send about them.
- Notifications: notifications while the app is open, your own notification delegate, and the Notification Service Extension.
- Privacy: what the SDK collects, for your App Store privacy details.