NotificationsPush
Overview
Push notifications via Nutifar
Push notifications require a registered device token before you can send. Unlike email and SMS, Nutifar does persist push device tokens — they're the one exception to the "no stored recipient data" rule, since a device token isn't reusable outside the push flow the way an email or phone number is.
How it works
- Your mobile app requests a push token from the platform (APNs for iOS, FCM for Android).
- Your app sends that token to Nutifar via
@nutifar/expo, tied to anappId+userId. - You send push notifications by targeting that
userId— Nutifar looks up the associated device token(s) automatically.
await nutifar.notifications.send({
channel: 'push',
appId: 'app_123',
userId: 'user_456',
title: 'New message',
body: 'You have a new message from Sarah',
});A user can have multiple registered devices (e.g. phone + tablet). Nutifar sends to all active tokens for that userId unless you specify a deviceId.
Before you send
- Register a device from your client app
- Configure iOS and/or Android credentials in your dashboard