iOS PhoneGap API發送removeFromFriendList時, 被移除方的app會直接關閉

StevenYanBI30
2017-06-22 03:42 493 0

使用最新版插件 jmessage-phonegap-plugin 2.4.7

A,B兩人為好友
當A要移除B好友時
發送removeFromFriendList
window.JMessage.removeFromFriendList(username, appkey, successCallback, errorCallback);

A方的APP看起來有收到正常successCallback, "remove%20friend%20succeed"
但是B方的APP, 如果當時是開著聊天APP的狀況下, 會被強制關閉

請問這狀況應該 不是 正常的吧?
即便被移除好友, 也不該強制關掉APP
可否幫忙了解一下是什麼原因?

Xcode端的log如下:

Xcode Log:
2017-06-22 10:55:28.474544+0800 QChat[672:135707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'
*** First throw call stack:
(0x181dbafe0 0x18081c538 0x181ca19b4 0x181ca1824 0x1000b780c 0x181dc0e80 0x181cb62c4 0x181cbae9c 0x1005f1a50 0x1005f1a10 0x1005f6b78 0x181d690c8 0x181d66ce4 0x181c96da4 0x183700074 0x187f4a058 0x100096348 0x180ca559c)
libc++abi.dylib: terminating with uncaught exception of type NSException

開發資訊如下:

手機iOS版本:iPod Touch iOS 10.3
Cordova Platform iOS : 4.3.1
Xcode: 8.3.3
cordova-plugin-jcore 1.1.4
jmessage-phonegap-plugin 2.4.7
source code來源:https://github.com/jpush/jmessage-phonegap-plugin

2个回答

热门排序