OneSignal and Pugpig Bolt
Table of Contents
What is OneSignal?
OneSignal is a push notification and in-app messaging provider supported on Bolt iOS and Android. It is also supported by the Bolt Preference Centre.
Bolt supports push notifications, including rich push, deeplinking, in-app messages, Confirmed Deliveries, External User ID for logged-in users, event tracking, and user data tags for segmenting.
What do we need from you to get set up?
We need your OneSignal App ID, which you can get from your dashboard and pass to us securely so that we can configure it for your build. For iOS, enable Manual Push Prompt or provisional push. If you use provisional push, include content in the notification to explain how to enable notifications. See OneSignal's provisional push documentation.
iOS App Group entitlement for OneSignal
OneSignal requires an additional App Group entitlement for iOS push tracking to work. The App Group must be configured in both the provisioning profile and App Store Connect.
If you create the provisioning profile yourself, add the App Group entitlement as part of the profile setup. Follow OneSignal's iOS SDK setup instructions.
If you use the magic wand on the Distribution mobile provisioning page, it will perform most of this setup for you.
Analytics
Use the BoltNotificationOpen event to track notification performance. To attribute opens to a campaign, add a custom data key named PPCampaign in the notification composer's Advanced Settings. Its value is passed to the KGLabel and pugpigCampaign analytics dimensions.
Event tracking
Bolt sends standard analytics events to OneSignal as custom events. Each event includes its name and parameter value, where applicable, and is available in OneSignal under Analytics > Custom Events. The Bolt Category dimension, which identifies the screen context, is not sent because OneSignal has no equivalent field. OneSignal limits custom-event payloads, so oversized payloads may be truncated.
In-App Triggers
Bolt supports OneSignal in-app message triggers without custom development. As users navigate, Bolt calls OneSignal's addTrigger method with the current screen name. Configure a trigger where screen equals the relevant screen name. Screen names follow the existing screenView analytics naming convention.
A note on deeplinking from in-app messages
For internal deeplinks on iOS, configure the button as Custom click action, not URL, and paste the deeplink into the resulting field. Android in-app messages should use the URL method. We are working with OneSignal to align this behaviour.
Tags and the OneSignal tag limit
Bolt can add subscription data, pugpigSubscriberStatus, one tag per Preference Centre topic, and a last-user-interaction tag. Preference topic values are stored as 1 when ticked and 0 when unticked, so both count towards the limit.
OneSignal limits tags per user by plan. When a user is over the limit, new tags are rejected and Preference Centre saves can fail. Bulk-remove unwanted tags in OneSignal first, especially old topics or tags that are no longer needed. See OneSignal's user data tags documentation.
After bulk removal, ask us to add the same tags to the config's excluded push tag list. Exclusion is an extra safeguard, not a replacement for bulk removal. Excluded tags are no longer set by the apps, are removed again if they reappear when app tags are updated, are removed when a user saves preferences, and continue to be sent to analytics. Do not use excluded tags in segments or journeys. The user ID, Preference Centre topics, and last-user-interaction tag cannot be excluded.
Excluded push tags workflow
- In OneSignal, check an affected user's Data Tags and compare the count with the plan limit.
- Agree the tags to remove with the customer, using only tags they do not segment on, such as
ppidor obsolete topics. - Bulk-remove those tags from all users in OneSignal.
- Add the same tags to Excluded Push Tags in the OneSignal push addon, matching spelling and case. Do not add
id,user/id, Preference Centre topics, or the last-user-interaction tag. - Save and deploy the app config. From Distribution 13.35.5, saving the addon clears the relevant cache automatically.
- Verify on a test user that the excluded tags are gone after a preference save and relaunch, while other tags are unchanged.
If a user is already over the limit, the first preference save removes the excluded tags but may fail to save the preferences. The user may need to save a second time, which is why bulk removal is required first.


