How to target push notification

It’s easy to send a notification to everyone but how do we target some users?

Assuming you use Ionic Cloud

When you register the device for push notifications, you need to save the token in your backend. Then when calling the API to make a push notification, you specify the token ID’s in the tokens array.

    "tokens": [
    	"fTn_gOGt2_Y:APA91bGB1HcgcShtrCfS_..."	,
    "profile": "myapp",
    "notification": {
    	"title": "Token Test",
        "message": "Ignore me!"

The criteria you want for the users selected you have to make yourself, when you’re selecting all the tokens which you want to send to. The API can’t help you with that, afaik.