Services Plugins FAQs

Push Notification - Air Native Plugin

Hi All, I have recently wrapped an app and setting up push notifications. Its a safety band app for kids and I need to alert the user if their kids band “activation code” is scanned. Im having trouble with the device id of the user - do I need to capture this on signup? Any help would be great. Thankyou!

Hi @chaddickson83

Thank you for reaching out.

Yes, the device ID is either captured on sign-up or when the user is logged in. The device ID is captured and then saved to the database to be later used to send the push notifications.

To set it up, you first need to do all the setup instructions in our documentation

Then you can do the following to capture the Device ID:

  1. Put the Air Native plugin element on the page
  2. Use the “Get OneSignal deviceID” action
  3. Then use the element’s event Air Native Device ID Getted and make changes to the Current User and add the OneSignal Device ID to the DB.

Depending on your use case, you can send the push notification to a particular user when the QR/Activation code is scanned(by using conditions and custom states)

In case you have any other questions, just let me know :slight_smile:

Have a great day.

1 Like