Apple device sometimes receive notifation twice

63 views
Skip to first unread message

夏申洋

unread,
Apr 8, 2020, 2:27:53 AM4/8/20
to pushy
Hi
    I use pushy(0.13.8) to send  apns notifation. Sometimes few devices receieve the same notifation twice, but I only call ApnsClient.sendNotification() once. I can’t reproduce the problem because it is a random event. So I would like to ask how to track this problem.

在此输入代码...  
 ApnsClient apnsClient = new ApnsClientBuilder()
                        .setClientCredentials(file, password)
                        .setConcurrentConnections(8)
                        .setEventLoopGroup(new NioEventLoopGroup(4))
                        .setApnsServer(host)
                        .build();
    ....
    ....                    

    ApnsPushNotification pushNotification = new SimpleApnsPushNotification(token, topic, message, new Date(System.currentTimeMillis() + INVALIDATION_TIME));


apnsClient.sendNotification(pushNotification);


阿拉斯加大闸蟹

unread,
Jun 19, 2020, 6:54:02 AM6/19/20
to pushy
I also encountered the same problem, did you find a solution?

在 2020年4月8日星期三 UTC+8下午2:27:53,夏申洋写道:
Reply all
Reply to author
Forward
0 new messages