uniqush / uniqush-push

Uniqush is a free and open source software system which provides a unified push service for server side notification to apps on mobile devices.
http://uniqush.org
Apache License 2.0
1.53k stars 201 forks source link

problem to send push to device #206

Closed waraxtle closed 6 years ago

waraxtle commented 6 years ago

Hello Sir,

i use uniqush from 2 years. Now i send push to a device token and receive UNIQUSH_SUCCESS. In log i see

[Push][Info] 2018/02/21 12:15:21 Connection closed by APNS: EOF [Push][Info] 2018/02/21 12:15:21 Service=etruck_IOS Subscriber=3FC38A11-9ACE-49D2-83A6-A71DB4E3859E DeliveryPoint=apns:c2c58e522797c873152b66f2dc12c32866fe0b59 Unsubscribe success [Push][Error] 2018/02/21 12:15:21 Error:

If i send another push i receive

[Push][Info] 2018/02/21 12:15:26 RequestId=5a8d54ce-qkG8YbRm0Unl5pciFwWImA== From=5.94.118.210:49942 Service=etruck_IOS NrSubscribers=1 Subscribers="[3FC38A11-9ACE-49D2-83A6-A71DB4E3859E]" [Push][Error] 2018/02/21 12:15:26 RequestID=5a8d54ce-qkG8YbRm0Unl5pciFwWImA== Service=etruck_IOS Subscriber=3FC38A11-9ACE-49D2-83A6-A71DB4E3859E Failed: No device

because device is removed by unsubscriptions.

Device token is correct. Can you help me?

waraxtle commented 6 years ago

I resolved this issue.

gateway.sandbox.push.apple.com server had problem to send push. I now use gateway.push.apple.com. I define a service with parameter -d addr=gateway.push.apple.com:2195 I found this parameter in source code not in documentation...

Now all it's ok.

Best regards.