簡體   English   中英

App在前景上並收到推送通知消息(IOS)時發生鈦合金崩潰

[英]Titanium Crash when App is on Foreground and receives a Push Notification message (IOS)

我使用帶有節點js的aps定制服務器。 當應用程序為后台推送消息時,可以正常接收,但在ios中,當應用程序處於前台崩潰時:

出現此錯誤:

-[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

任何建議都應加重。


我在對自己說。

嘗試不使用LiveView后,應用程序不會崩潰,因此它是liveview中的錯誤。 我已經建議改善JIRA。 我已經用5.3.1.GA和5.4.0.GA驗證了此錯誤。

我在對自己說。

嘗試不使用LiveView后,應用程序不會崩潰,因此它是liveview中的錯誤。 我已經建議改善JIRA。 我已經用5.3.1.GA和5.4.0.GA驗證了此錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM