importing-push-tokens

Installation
SKILL.md

Importing push tokens from another platform

A push notification reaches a device only when PostHog knows that device's token and which person it belongs to. The mobile SDK registers new devices by itself. Devices that installed the app before the switch stay unknown until their token is imported.

The import pairs each device token with a distinct ID. The distinct ID has to be the ID the app passes to identify, so the device lands on the person a workflow targets. A pairing that is off by one prefix or uses another platform's internal ID imports fine but never receives a push. Getting the pairing right is most of the job.

The tools

  • integrations-list: find the push channel. kind is apns for iOS and firebase for Android (and for iOS apps that send through FCM).
  • integrations-push-tokens-create: import up to 1000 rows per call, with dry_run to check without storing anything.

The same import is in the app under Workflows → Channels → Import devices, for a person who has a CSV.

Which token goes to which channel

Installs
5
Repository
posthog/skills
GitHub Stars
78
First Seen
3 days ago