User & Consent Management
Overview
Median integrates with OneSignal's native SDKs to help you manage user consent for push notifications and comply with privacy regulations like GDPR. This section covers how to configure user permissions, delay registration, and utilize OneSignal’s tools to manage privacy and messaging preferences.
Key User Flows
Push Registration and Privacy Consent
By default, your app prompts users for push notification permission on the first launch and begins communicating with OneSignal, which includes generating a oneSignalUserId. To enhance user trust and support privacy-first strategies, you can:
- Delay the permission prompt and trigger it manually using JavaScript.
- Defer all communication with OneSignal until after the user grants explicit consent.
This configuration helps you stay compliant with privacy regulations and improves user experience by offering more control.
📖 Learn more: Push Registration and Privacy Consent
iOS Soft Prompt
On iOS, OneSignal recommends using a soft prompt—a custom in-app message shown before the native push notification prompt. This pre-permission message allows you to:
- Educate users about the value and frequency of notifications.
- Improve opt-in rates by offering context before triggering the system-level prompt.
📖 Learn more: iOS Soft Prompt
User Management
Leverage OneSignal’s user management features to send tailored push notifications. You can associate users with unique identifiers such as email addresses or account IDs to:
- Deliver personalized messaging.
- Target individual users across multiple devices.
📖 Learn more: User Management
Subscription Management
OneSignal enables you to manage subscriptions using data tags, which classify users into custom segments. Use tags to:
- Allow users to self-manage their notification preferences.
- Programmatically subscribe or unsubscribe users from categories like promotions, updates, or alerts.
📖 Learn more: Data Tags (Subscription Management)
OneSignal Info
Access OneSignal and device-related data in real time using the oneSignalInfo object through the Median JavaScript Bridge. This provides visibility into:
- Device metadata
- OneSignal subscription status
- Current user identifiers
📖 Learn more: OneSignal Info
Updated 14 days ago