Table of contents
- Configure push in your application
- Configure push notifications in your application
- Identify device tokens with Vero
- Tracking push “opens” with Vero
- Testing push notifications
Definitions
Throughout this help article, here’s what we mean when we use the following terms:- Push notification. A notification sent to an iOS or Android device using Apple or Google’s inbuilt notification infrastructure. This is different to a “web push” message or an SMS.
- Push delivery provider. The service that manages your certificates with Apple and Google and sends push messages via those platforms. Vero sits “on top of” your push delivery provider.
1. Configure push in your account
a. Supported push delivery providers
Vero sends push messages to your customers by integrating with common and popular push delivery providers. At this time we support the following providers: These providers enable you to manage your APN, GCM and FCM certificates in a central place. By using Vero “on top of” your current configuration with these providers, you can use Vero alongside direct push messages you send from your application backend with less hassle and less duplication. . In the future we may provide support for direct APN, GCM and FCM certificate integration, rather than sitting on top of Amazon SNS, Twilio Notify and others: if this is of interest to you, we’re keen on your feedback. Please email us at support@getvero.com.b. Enabling push in Vero
Navigate to Settings > Push Delivery. Using this menu, you can add one or multiple push provider configurations. To add an integration, select the provider you wish to use and enter the appropriate details. Follow the instructions below for the various providers supports.Amazon SNS

us-east-1) in which your AWS SNS account is configured and add an Access Key ID and Secret Access Key. We recommend creating a new IAM user for your Vero account, specifying specific access to AWS SNS.
We’ve written a help article outlining the correct AWS IAM policy configuration to ensure you can use AWS SNS with Vero.
Once you’ve added these details to Vero, use the Select a service dropdown to link your Vero configuration to the appropriate iOS service and/or Android service in SNS.
Hit Save to store your credentials.
Twilio Notify

2. Configure push notifications in your application and obtain a unique device
As you will be using Vero on top of either Amazon SNS or Twilio, we expect that you will already have the following setup configured to support push notifications:- Configured your Delivery Provider’s integration with Apple and/or Google’s Android
- An application server backing your iOS/Android application
- Configured your iOS/Android application to register a customer’s device, receiving a device token uniquely identifying a certain device
- iOS Quickstart
- Android Quickstart
- Registering for push notifications on iOS
- Registering for push notifications on Android
3. Identify device tokens with Vero
In order to use Vero on top of your Delivery Provider, you must add unique device tokens your user profiles in Vero. Based on the architecture described in step two above, generally your iOS or Android Client will pass the device token to your application backend. You will then register the unique device token with your Delivery Provider (AWS, Twilio, etc.) from your backend. At this point, you must update your code to also add the device token to the correct user’s profile in Vero. This should be done via your server backend so as to avoid exposing your Vero credentials in the application on the device itself. Every time the device token changes and you register it with your Deliver Provider, you should also add the token to the correct user’s profile in Vero. To add a device token to a customer profile in Vero, make a request to Vero’s API using theidentify method that includes the channels hash, as in the example below.
Note that the type column should always be push for iOS and Android device tokens, and the platform column should be either ios or android, as relevant. Our API documentation covers our identify endpoint in more detail.
platform field only accepts two values: ios and android.
Don’t forget that Vero’s API expects a Content-Type header of type application/json. You can see more examples of requests using our different libraries via our API Reference.
4. Tracking push “opens” with Vero
When a push notification is sent to a user’s device, your application must handle the incoming push notification. As part of the configuration of your Delivery Provider as outlined in Section 2 above, you will have implemented code to handle incoming notifications. If a user elects to open or interact with your notification, you can track this engagement using Vero’s API as part of handling this interaction. To do this, as part of your application’s device callback, you need to extract themessage_data property provided by Vero and make a request to our API.
We’ve included examples of how to do this on both iOS and Android below. Note that these are just simple examples and should be used as a guide alongside your own application code.
iOS example
Here is an example of how we would recommend handling push notifications and tracking engagement into Vero on iOS:Android example
Here is an example of how we would recommend handling push notifications and tracking engagement into Vero on Android:5. Testing push notifications
To test a single push notification, first create a new push message campaign. You can then select the Test push option above the content preview. Using the preview push modal, search for and select any user record in your Vero account that has adevice_token set on their profile. Note that we will search for device_tokens that match the platform(s) selected for a given campaign. For example, if you create a new push campaign and select iOS as the platform to target, we will search for users that have an iOS device_token set.
Once you’ve selected your test profile, hit Send and we will then deliver a test version of the push message to the device selected.


