0
使用自定義服務器的aps節點js。當應用程序是背景推送消息被接收正常,但是當應用程序處於前臺崩潰在IOS:前臺應用程序處於前臺狀態並收到推送通知消息(IOS)時出現Titanium崩潰
此錯誤出現:
- [TiApp應用:didReceiveRemoteNotification:]:無法識別的選擇發送到實例。
我的系統瓦爾:
Operating System
Name = Mac OS X
Version = 10.11.4
Architecture = 64bit
# CPUs = 4
Memory = 8589934592
Node.js
Node.js Version = 0.12.7
npm Version = 2.11.3
Titanium CLI
CLI Version = 5.0.9
Titanium SDK
SDK Version = 5.3.1.GA
SDK Path = /Users/myuser/Library/Application Support/Titanium/mobilesdk/osx/5.3.1.GA
Target Platform = iphone
堆棧跟蹤
-[TiApp application:didReceiveRemoteNotification:]: unrecognized selector sent to instance 0x147d1d650
[ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'.
[ERROR] : Reason:
[ERROR] : -[TiApp application:didReceiveRemoteNotification:]: unrecognized selector sent to instance 0x147d1d650
[ERROR] : Stack trace:
[ERROR] :
[ERROR] : 0 CoreFoundation 0x00000001813fedb0 <redacted> + 124
[ERROR] : 1 libobjc.A.dylib 0x0000000180a63f80 objc_exception_throw + 56
[ERROR] : 2 CoreFoundation 0x0000000181405c4c <redacted> + 0
[ERROR] : 3 CoreFoundation 0x0000000181402a1c <redacted> + 408
[ERROR] : 4 CoreFoundation 0x0000000181300c5c _CF_forwarding_prep_0 + 92
[ERROR] : 5 MyApp 0x00000001002707f4 MyApp + 2017268
[ERROR] : 6 UIKit 0x00000001868161a8 <redacted> + 2676
[ERROR] : 7 UIKit 0x0000000186803f84 <redacted> + 136
[ERROR] : 8 FrontBoardServices 0x0000000182d9f7ac <redacted> + 36
[ERROR] : 9 FrontBoardServices 0x0000000182d9f618 <redacted> + 168
[ERROR] : 10 FrontBoardServices 0x0000000182d9f9c8 <redacted> + 56
[ERROR] : 11 CoreFoundation 0x00000001813b509c <redacted> + 24
[ERROR] : 12 CoreFoundation 0x00000001813b4b30 <redacted> + 540
[ERROR] : 13 CoreFoundation 0x00000001813b2830 <redacted> + 724
[ERROR] : 14 CoreFoundation 0x00000001812dcc50 CFRunLoopRunSpecific + 384
[ERROR] : 15 GraphicsServices 0x0000000182bc4088 GSEventRunModal + 180
[ERROR] : 16 UIKit 0x00000001865c6088 UIApplicationMain + 204
[ERROR] : 17 Cablecol 0x0000000100089658 Cablecol + 22104
[ERROR] : 18 libdyld.dylib 0x0000000180e7a8b8 <redacted> + 4
[ERROR] : *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TiApp application:didReceiveRemoteNotification:]: unrecognized selector sent to instance 0x147d1d650'
[ERROR] : *** First throw call stack:
[ERROR] : (0x1813fedb0 0x180a63f80 0x181405c4c 0x181402a1c 0x181300c5c 0x1002707f4 0x1868161a8 0x186803f84 0x182d9f7ac 0x182d9f618 0x182d9f9c8 0x1813b509c 0x1813b4b30 0x1813b2830 0x1812dcc50 0x182bc4088 0x1865c6088 0x100089658 0x180e7a8b8)
[LiveView] Client disconnected
apreciated任何sugestions。
我回答自己。
嘗試不使用LiveView後,應用程序不會崩潰,因此它是liveview中的錯誤。我已經建議對JIRA進行改進。我已經用5.3.1.GA和5.4.0.GA驗證了這個錯誤。
您可以在推送有效載荷中顯示您作爲JSON接收的數據格式嗎? –
我想你應該嘗試禁用LiveView,因爲它不建議使用LiveView推送通知。 –
Apreciate爲您響應Prashant Saini,我不能向您展示有效負載,因爲它在回調中記錄負載之前崩潰。它可以是實時查看,我會測試它,讓我們看看會發生什麼。 –