我正在处理 VOIP 应用程序,当应用程序处于前台或后台时,我也收到了 voip 推送,但是当应用程序终止或强制退出并且 iPhone 进入锁定模式时……设备获取 voip 推送(我在设备控制台中检查)
Received message for enabled topic 'com.kipl.app.voip' with payload '{
aps = {
alert = "Misscall from +91 9782260101";
"content-available" = 1;
sound = default;
};
"message_data" = {
UUID = "E740A875-65B2-4E4C-AF3C-3B886AA040F3";
handle = 919782260101;
hasVideo = 0;
image = "201702/589c6c27febed30d03c32f54.jpg";
message = "Misscall from +91 9782260101";
phone = "+91 9782260101";
pushType = miscall;
username = "";
};
}' onInterface: NonCellular for device token: NO with priority (null)
Mar 4 12:52:14 iPhone apsd(PersistentConnection)[86] <Notice>: 2017-03-04 12:52:14 +0530 apsd[86]: <APSMessageStore: 0x10035adb0> asked to store incoming message <APSIncomingMessage: 0x1003a1f00> with guid B0C02302-772D-423B-A525-A0115F98DA29 environment <APSEnvironment: 0x10030f610: production>
Mar 4 12:52:14 iPhone apsd(PersistentConnection)[86] <Notice>: 2017-03-04 12:52:14 +0530 apsd[86]: <APSCourier: 0x100311180>: Calling into AWD for PushReceived
Mar 4 12:52:14 iPhone apsd(PersistentConnection)[86] <Notice>: 2017-03-04 12:52:14 +0530 apsd[86]: <APSCourier: 0x100311180>: AWD for PushReceived finished
Mar 4 12:52:14 iPhone apsd(PersistentConnection)[86] <Notice>: 2017-03-04 12:52:14 +0530 apsd[86]: <APSCourier: 0x100311180>: Stream processing: complete no, invalid no, length parsed 0, parameters (null)
Mar 4 12:52:14 iPhone apsd(PersistentConnection)[86] <Notice>: 2017-03-04 12:52:14 +0530 apsd[86]: APSMessageStore - New message record [<APSIncomingMessageRecord 0x1004d7540 [0x1ac0d6bb8]>{}] has ID [1400].
Mar 4 12:52:14 iPhone apsd(PersistentConnection)[86] <Notice>: 2017-03-04 12:52:14 +0530 apsd[86]: <APSMessageStore: 0x10035adb0> calling completion block for incoming message B0C02302-772D-423B-A525-A0115F98DA29
Mar 4 12:52:14 iPhone apsd(PersistentConnection)[86] <Notice>: 2017-03-04 12:52:14 +0530 apsd[86]: <APSCourier: 0x100311180>: Sending acknowledgement message with response 0 and messageId <04000000> (4)
Mar 4 12:52:14 iPhone apsd(PersistentConnection)[86] <Notice>: 2017-03-04 12:52:14 +0530 apsd[86]: <APSCourier: 0x100311180> Noting push - using last lq 0 and rat (null) (instead of -2, kCTRegistrationRadioAccessTechnologyUnknown)
Mar 4 12:52:14 iPhone apsd(PersistentConnection)[86] <Notice>: 2017-03-04 12:52:14 +0530 apsd[86]: <APSDecayTimer: 0x1004127f0>:APSNetworkMonitor decaying cost (381 - 6) = 375 for 24.425812 seconds
Mar 4 12:52:14 iPhone apsd(PersistentConnection)[86] <Notice>: 2017-03-04 12:52:14 +0530 apsd[86]: <APSDecayTimer: 0x1004127f0>:APSNetworkMonitor addCost: 166 - _currentCost is now 541
Mar 4 12:52:14 iPhone apsd(PersistentConnection)[86] <Notice>: 2017-03-04 12:52:14 +0530 apsd[86]: <APSCourier: 0x100311180> _notifyForIncomingMessage <APSIncomingMessage: 0x1003a1f00> with guid B0C02302-772D-423B-A525-A0115F98DA29
Mar 4 12:52:14 iPhone apsd(PersistentConnection)[86] <Notice>: 2017-03-04 12:52:14 +0530 apsd[86]: Dispatching high priority message: <OS_xpc_dictionary: <dictionary: 0x1003ed2a0> { count = 2, transaction: 0, voucher = 0x0, contents =
"message" => <dictionary: 0x10038a050> { count = 1, transaction: 0, voucher = 0x0, contents =
"ECF19A18-7AA6-4141-B4DC-A2E5123B2B5C" => <data: 0x1003a8360>: { length = 16384 bytes, contents = 0x62706c6973743135137e020000000000801200000000d87f... }
}
"message-type" => <int64: 0x10035c950>: 30
}>
也didFinishLaunchingWithOptions
被调用,但pushkit委托不调用。我也正在使用呼叫套件来接听来电。
1)当应用程序在前台时......推送工作
2)应用程序从后台删除并锁定手机......在设备中推送接收但pushkit代表不调用..问题
任何人都可以请建议,我该如何克服这个问题?