Lightning-fast, highly-reliable push notification delivery with
npm i --save nativescript-pushy
  • Version: 2.1.0
  • GitHub:
  • Downloads:
    • Last Day:   0
    • Last Week:  0
    • Last Month: 0

NativeScript Pushy

Build Status NPM version Downloads Twitter Follow

Hop on over to to get started!


tns plugin add nativescript-pushy

For {N} 5 and below please use

tns plugin add nativescript-pushy@1.x

Demo app

Check the source in the demo folder, or run it on your own device:

git clone
cd nativescript-pushy/src
npm i
npm run demo.ios # or

Setup (iOS only)

Create a file called either app.entitlements or <YourAppName>.entitlements (where YourAppName is identical to the folder name of platforms/ios/YourAppName). Here's an example.

Now reference that file from build.xcconfig as shown here.



import { getDevicePushToken } from "nativescript-pushy";

.then(token => console.log(`getDevicePushToken success, token: ${token}`))
.catch(err => console.log(`getDevicePushToken error: ${err}`));


Since plugin version 1.1.0 the entire payload of the notification is copied to the object this handler receives, but note that it all gets copied into a data object. So if you send for instance {"foo": "bar"}, you can find the value "bar" at

import { setNotificationHandler } from "nativescript-pushy";

setNotificationHandler(notification => {
console.log(`Notification received: ${JSON.stringify(notification)}`);

Please note..

⚠️ Do not test on a the iOS simulator as it can't receive push notifications.