Uniqush 2.1.0 Android push sending problem

64 views
Skip to first unread message

kamil çakır

unread,
Jun 21, 2016, 5:28:01 AM6/21/16
to uniqush

Hi,

I am using uniqush push 2.1.0 on prduction. When I send push to subscribed users on android Uniqush returns success but push not coming to device. Uniqush response is below:

{
"type": "Push",
"date": 1466500290,
"successCount": 1,
"failureCount": 0,
"droppedCount": 0,
"successDetails": [{
"requestId": "576904c2-elWF6rUle-GE1cZl9cs5cA==",
"service": "myservice",
"from": "10.94.10.21:51939",
"subscriber": "myservice.android.071136",
"pushServiceProvider": "gcm:87d1311f71a2db6977832f3d5e9d91f3f9cd8dbc",
"deliveryPoint": "gcm:827a131d8b4cae819ea86aadd856615c23e5a942",
"messageId": "",
"code": "UNIQUSH_SUCCESS"
}],
"failureDetails": [],
"droppedDetails": []
}

I try it with direct gcm url as int he example on google site. It works with subscribed regid on redis db. Request is below:




Where is the mistake? Is there a bug on uniqush v2.1.0 ?

Thanks for your help..












Misha Nasledov

unread,
Jun 21, 2016, 1:55:54 PM6/21/16
to uni...@googlegroups.com, Tyson Andre
Hi Kamil,

Could you provide any more details? (e.g. how you send payload)

Is there anything interesting on the target Android device if you do an adb logcat? Perhaps the payload delivered to the device is coming in differently and not getting parsed correctly?

--
You received this message because you are subscribed to the Google Groups "uniqush" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uniqush+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Misha Nasledov | Sr. Software Engineer
Tagged, Inc. is now if(we). Learn more at ifwe.co

Marcos Marcelo

unread,
Jun 23, 2016, 5:04:13 PM6/23/16
to uniqush
I have the result:


{
    "type": "Push",
    "date": 1466715655,
    "successCount": 1,
    "failureCount": 0,
    "droppedCount": 0,
    "successDetails": [{
            "requestId": "576c4e07-0ZyjAS42CKUvIQngGtXqaA==",
            "service": "oficinamovil-android",
            "from": "10.1.34.127:24075",
            "subscriber": "uniqush.client",
            "pushServiceProvider": "gcm:7ed44edf1b171e11fabeb9ebcb33533f6d182ca7",
            "deliveryPoint": "gcm:e16ae4e8440f7c9da92e2d6191fa4dc86c2cb734",
            "messageId": "gcm:7ed44edf1b171e11fabeb9ebcb33533f6d182ca7:0:1466715617422205%c86066aef9fd7ecd",
            "code": "UNIQUSH_SUCCESS"
        }],
    "failureDetails": [],
    "droppedDetails": []
}

But with other push method (node-gcm) works.


Best,

Marcos

Marcos Marcelo

unread,
Jun 23, 2016, 5:29:23 PM6/23/16
to uniqush
Finally I made it, with the request

POST /push HTTP/1.1
Accept: application/json
Cache-Control: no-cache
Postman-Token: 71c7fb07-0192-13ef-8ac1-2c7cfec1e2c8
Content-Type: application/x-www-form-urlencoded

service=oficinamovil-android&subscriber=YYYYYY594&sound=default&title=Ofi&message=Uniqush

If you send the parameter msg, this will send to client with null value, so we need to send others paramerters that not includes in the documentation

Best,




El martes, 21 de junio de 2016, 5:28:01 (UTC-4), kamil çakır escribió:
Reply all
Reply to author
Forward
0 new messages