Hi guys,
When my app receives a notification, it appears in the notification bar. But when I tap on it, the app tries to launch but crashes instead. The app works fine when loaded normally. Tested it on a iOS7 device, and shows the similar behaviour.
Anyone knows what’s the problem of the app crashing when trying to load it from the notification bar ?
I am using Corona 2014.2453 (latest) on a Mac
Here’s a snippet of the crash log i got from Xcode (from actual iPad device).
Oct 5 19:09:18 LKs-iPad Best[193] \<Error\>: assertion failed: 12A405: libxpc.dylib + 51955 [84E1BEE3-B897-39DD-9A7B-D061B6B252C5]: 0x7dOct 5 19:09:18 LKs-iPad Unknown[193] \<Error\>: Oct 5 19:09:18 LKs-iPad Best[193] \<Error\>: -[NSNull count]: unrecognized selector sent to instance 0x37b063d0 Oct 5 19:09:18 LKs-iPad Best[193] \<Error\>: \*\*\* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull count]: unrecognized selector sent to instance 0x37b063d0' \*\*\* First throw call stack: (0x2976ef87 0x3719dc77 0x2977437d 0x29772259 0x296a3d68 0x7841b 0x97bf3 0x7d20d 0x7d3f3 0x7dbcb 0x2cc57f81 0x2ce4ce85 0x2ce4f3b9 0x2ce59c69 0x2ce4dc5b 0x2fe680e1 0x2973582d 0x29734af1 0x2973364b 0x29680db1 0x29680bc3 0x2cc51c37 0x2cc4ca31 0x714e3 0x37739aaf) Oct 5 19:09:18 LKs-iPad ReportCrash[192] \<Notice\>: ReportCrash acting against PID 193 Oct 5 19:09:18 LKs-iPad diagnosticd[171] \<Error\>: error evaluating process info - pid: 193, punique: 193 Oct 5 19:09:18 LKs-iPad ReportCrash[192] \<Notice\>: Formulating crash report for process Best[193] Oct 5 19:09:18 LKs-iPad SpringBoard[41] \<Warning\>: BSXPCMessage received error for message: Connection invalid Oct 5 19:09:18 LKs-iPad com.apple.xpc.launchd[1] (UIKitApplication:com.MYAPP[0xb3be][193]) \<Notice\>: Service exited due to signal: Abort trap: 6 Oct 5 19:09:19 LKs-iPad ReportCrash[192] \<Notice\>: Saved report to /var/mobile/Library/Logs/CrashReporter/Best\_2014-10-05-190918\_LKs-iPad.ips Oct 5 19:09:19 LKs-iPad SpringBoard[41] \<Warning\>: Application 'UIKitApplication:com.MYAPP[0xb3be]' crashed. Oct 5 19:09:19 LKs-iPad locationd[61] \<Notice\>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0 Oct 5 19:09:33 LKs-iPad locationd[61] \<Notice\>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0 Oct 5 19:09:42 LKs-iPad syncdefaultsd[184] \<Notice\>: (Note ) marked "com.me.keyvalueservice" topic as "opportunistic" on \<APSConnection: 0x14e67260\> Oct 5 19:09:43 LKs-iPad locationd[61] \<Notice\>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0 Oct 5 19:09:45 LKs-iPad kernel[0] \<Notice\>: AppleARMPMUCharger: AppleUSBCableDetect 1 Oct 5 19:09:45 LKs-iPad kernel[0] \<Notice\>: AppleARMPMUCharger: AppleUSBCableType USBHost Oct 5 19:09:46 LKs-iPad ptpd[195] \<Error\>: ptpd: startResponder