Skip to main content

Prerequisites

Make sure you’ve completed the Platform Setup for iOS and Android before proceeding.

How to Use

Create a client, request permission, identify the device’s push token, and handle notification taps:
app/_layout.tsx
Get your project ID from your PNTA Dashboard settings.
That’s it! Your app now receives push notifications. getDevicePushTokenAsync() returns the native APNs or FCM token. PNTA uses it as the device identifier.

Advanced Usage

Metadata

Set custom data on the device after login. Use it to target users from the API or in topic rules:

Delayed Registration

Ask for permission later, for example after signup, when users understand the value:
Best Practice: Consider delayed registration for better opt-in rates.