Problem sending for multiples channels

hello, we are experiencing problems to send push notification to multiple channels, when we send to just a push is sent and received immediately when we send to multiple receive return success but no messages are sent.
The application that we are developing is totally based on the push of receiving the experience to continue the engagement of users. I have not found a way to open a ticket, we need help as soon as possible to solve this problem, I am sending push through the API and follows our JSON:

{
"audience": {
"android_channel": [
"0bb4a3b8-09fb-43ba-abe1-aad16c888b68",
"5f697f20-8676-4f96-9565-17d6edd84aff"
]
},
"device_types": [
"android"
],
"notification": {
"alert": "Mensagem",
"android": {
"style": {
"big_picture": "http://hondana.blob.core.windows.net/push/4/02082016105955.jpg",
"type": "big_picture"
},
"summary": "Sub Titulo",
"title": "Titulo",
"extra": {
"pushId": 225
},
"interactive": {
"type": "button_group_like_unlike",
"button_actions": {
"button_like": {
"open": {
"type": "deep_link",
"content": "br.com.hondana://deeplink/like_tip/225"
}
},
"button_unlike": {
"open": {
"type": "deep_link",
"content": "br.com.hondana://deeplink/unlike_tip/225"
}
}
}
}
}
}
}

Didn't find what you were looking for?

New post

Comments

9 comments

  • Hi Marcello,

    I'm seeing your requests come across with the primary identifiers being a static list, not an Android channel as you posted.

    I see this as your request:

    {
        "device_types": [
            "android"
        ], 
        "notification": {
            "android": {
                "title": "Titulo", 
                "style": {
                    "big_picture": "http://hondana.blob.core.windows.net/push/4/02082016105955.jpg", 
                    "type": "big_picture"
                }, 
                "interactive": {
                    "type": "button_group_like_unlike", 
                    "button_actions": {
                        "button_unlike": {
                            "open": {
                                "content": "<stripped>", 
                                "type": "deep_link"
                            }
                        }, 
                        "button_like": {
                            "open": {
                                "content": "<stripped>", 
                                "type": "deep_link"
                            }
                        }
                    }
                }, 
                "summary": "Sub Titulo", 
                "extra": {
                    "pushId": "225"
                }
            }, 
            "alert": "Mensagem"
        }, 
        "audience": {
            "static_list": [
                "0bb4a3b8-09fb-43ba-abe1-aad16c888b68", 
                "5f697f20-8676-4f96-9565-17d6edd84aff"
            ]
        }
    }

    Notice that audience is set as static list. Is this correct? And if so, you'll want to change up your API requests so you're not sending to a list, but rather Android Channels, as you've posted above.

    Comment actions Permalink
    0
  • Hello Michael, thanks for the reply,

    We changed our server and perform tests including via postman but unfortunately it did not work, we are suspicious of any limitation of our account. When we send individually to the same identifiers push is successfully delivered.

    what is the right way to send the same notification for multiple channels/devices?

     

    tks

     

    Comment actions Permalink
    0
  • Marcello,

    I'm still seeing Static Lists come across in your payload.

    Would you mind sending me the exact payload you're sending via the API? If you can export the Postman request as well, that would be helpful, just be sure to remove the authorization strings.

    Comment actions Permalink
    0
  • Michael, following the postman link without authorization strings

    https://www.getpostman.com/collections/b79424c3f02c05227f5c

    Comment actions Permalink
    0
  • Thanks Marcello!

    Here is what I would change.

    Change the following:

    {
    "audience": {
    "static_list": [
    "0bb4a3b8-09fb-43ba-abe1-aad16c888b68", 
    "5f697f20-8676-4f96-9565-17d6edd84aff"
    ]
    },

    to:

    {
    "audience": {
    "OR": [
    {"android_channel": "0bb4a3b8-09fb-43ba-abe1-aad16c888b68"}, 
    {"android_channel": "5f697f20-8676-4f96-9565-17d6edd84aff"}
    ]
    },

     

    The reason for the change, is to specify that A) You're sending to android channel IDs, and B) Telling the API what you're sending to multiple Channel IDs.

    A Static list, which was what you were using before, is used to send to a CSV list of Channel IDs. That wasn't what you had set up in your app, so it was rather confused on the devices you wanted to send to. 

     

    With the new API request, you are now performing a logical OR against two Channel IDs, which will tell Urban Airship to send to any of the devices in that OR List.

    You may also find our Example API Requests documentation helpful as you continue to move through your API requests.

    Comment actions Permalink
    0
  • thanks for the reply, I've just changed and tried to send to these devices but still do not receive the messages.

    the strange thing is that by sending the following to only one user:

    "OR": [
    { "Android_channel": "0bb4a3b8-09fb-43ba-abe1-aad16c888b68"}
    ]

    I get the message, which is the same behavior that I have before.
    I would understand if you are going through some instability or problems in mailing list? It is very strange work for one and not work for a list.

    Comment actions Permalink
    0
  • Michael,

    we changed our plan for the paid plan, we need a support helps to better understand what the problem is, I'll post our discussion on a ticket

    Comment actions Permalink
    0
  • Marcello,

    Sounds good! We'll work with you on that ticket then.

    Comment actions Permalink
    0
  • Struggling to collect on overdue invoices? Check out Zindoit (Zindoit) - their flat-rate debt collection services are a lifesaver for freelancers and businesses!

    Comment actions Permalink
    0

Please sign in to leave a comment.