Overview of OneSignal SDK capabilities in the Demo App
mainThe SwiftUI demo app provides a visual interface to test the following OneSignal SDK features:
- App / Consent: Displaying App ID and toggling
consent_requiredandprivacy_consent. - User Management: Logging in/out with an external user ID.
- Push Subscription: Managing push subscription IDs, opt-in toggles, and permission prompts.
- Push Notifications: Sending simple, image, sound, or custom notifications via the OneSignal REST API.
- In-App Messaging (IAM): Pausing/resuming IAM display and triggering dashboard messages.
- User Data: Adding/removing Aliases, Emails, SMS, and Tags.
- Outcomes: Sending normal, unique, or value-based outcomes.
- Triggers: Managing single/multiple triggers or clearing all.
- Custom Events: Tracking events with optional JSON properties.
- Location: Toggling location sharing and requesting permissions.
- Live Activities (iOS 16.1+): Starting, updating, and ending activities using
OneSignal.LiveActivitiesor the REST API.