[問題]ios Push Notification推播問題

看板MacDev作者 (joogumo)時間11年前 (2013/04/03 16:21), 編輯推噓2(201)
留言3則, 3人參與, 最新討論串1/1
大家好! 小弟有個問題就是我用Apple Development IOS Push Services 用實機推播, 發現發送推播訊息,收到的人會聽到推播的聲音兩次,而且上面的註冊中心都沒有訊息說 請問各位前輩該如何解決呢?謝謝! //註冊通知中心 [application registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge| UIRemoteNotificationTypeAlert| UIRemoteNotificationTypeSound]; 接收到訊息:{ aps = { alert = "\U5b89\U7881\U63a8\U64ad\U6e2c\U8a66\U4e2d~~~"; badge = 1; sound = default; }; } 接收到訊息:{ aps = { alert = ""; badge = 0; sound = ""; }; } 發一次訊息,出現兩次訊息,第二次為空的! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.243.101.31 ※ 編輯: joojooman 來自: 111.243.101.31 (04/03 16:23) ※ 編輯: joojooman 來自: 111.243.101.31 (04/03 16:45)

04/04 17:27, , 1F
會不會你的網路lag了
04/04 17:27, 1F

04/05 13:29, , 2F
應該是server送給apple時的格式有錯,和client無關
04/05 13:29, 2F

04/06 18:06, , 3F
我一開始也以為網路lag 目前確定不是說@@
04/06 18:06, 3F
文章代碼(AID): #1HM-PqM- (MacDev)