• Resolved huongcba

    (@huongcba)


    Hi! Can I add multiple values ??to a custom attribute and send push notifications to users with at least one of them?

    In my site, a person can have many different roles. For example, user A has the roles: “Role 1”, “Role 2”, and user B has the roles: “Role 2”, “Role 3”.
    I want to add a custom attribute so that I can send push notifications to users with the role I want. In the above case I want that when I send a custom push notification to person with role 2 both person A and B receive it.

    I tried following the instructions in the attached link, but when checking in the Web Console, the custom attribute value shows as “Array”. And if I use the API to send notifications, all the role 1, 2, 3 attributes don’t work. But if I set the attribute as “Array”, the notification is sent. Was I doing it wrong?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author webpushr

    (@webpushr)

    Hi there,

    You can assign roles as key:value pairs. For example:

    User A

    Role_1:True; Role_2:True

    User B

    Role_2:True; Role_3:True

    You can then send push notification where custom attribute Role_2:True, and both User A and B will get the notification.

    Please e-mail us for better personalized support.

    Webpushr Support

    Thread Starter huongcba

    (@huongcba)

    Everything works fine, I have achieved many things with your suggestion. However, I ran into two limited problems with the API:

    1. Limit sending 20 requests via API within 6 hours, I see the answer in the forum that you can increase them if needed.
    2. Add up to 5 Custom Attributes in a single API call. Can I increase the number of custom attributes using other plans, or is that the maximum you can provide?
      Thank you very much!
    Plugin Author webpushr

    (@webpushr)

    Hi there,

    Good to know that all is working well. We do increase the limit, as stated in the forum, but will need to understand your use case better. Please email us so we can provide you better personalized support.

    Webpushr Support Team

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add multiple values ??to a custom attribute’ is closed to new replies.