I'm having an issue with receiving Push Notifications in our app. It all seems to be fine when the app is closed or in background. When I tap the notification, it opens the app and displays our deeplink's content.

However, when the app is in foreground and I try to open an old notification from the Notification Center, the UI freezes and the app gets killed by the watch dog after 10 seconds.

I've stripped down our implementation to the default code that's provided in Pushwoosh documentation. I'm calling the Pushwoosh configuration at the end of application(_:didFinishLaunchingWithOptions:). I kept the PushNotificationDelegate functions empty. I handle the url opening in application(_:open:options:).

Any idea what I'm doing wrong here?

Configuration

  • iOS 10
  • Swift
  • Pushwoosh 5.0.2

Crash log

The relevant part of my crash log:

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Triggered by Thread:  0

Filtered syslog:
None found

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x000000018d675188 mach_msg_trap + 8
1   libsystem_kernel.dylib          0x000000018d674ff8 mach_msg + 72
2   libdispatch.dylib               0x000000018d564868 _dispatch_mach_send_and_wait_for_reply + 516
3   libdispatch.dylib               0x000000018d564cb0 dispatch_mach_send_with_result_and_wait_for_reply + 60
4   libxpc.dylib                    0x000000018d798f90 xpc_connection_send_message_with_reply_sync + 196
5   Foundation                      0x000000018f2e7010 __NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__ + 12
6   Foundation                      0x000000018f2e6744 -[NSXPCConnection _sendInvocation:withProxy:remoteInterface:withErrorHandler:timeout:userInfo:] + 3120
7   CoreFoundation                  0x000000018e6c9070 ___forwarding___ + 404
8   CoreFoundation                  0x000000018e5c280c _CF_forwarding_prep_0 + 92
9   MobileCoreServices              0x00000001900bfa88 -[LSApplicationWorkspace openURL:withOptions:error:] + 256
10  UIKit                           0x00000001948096ac -[UIApplication _openURL:] + 144
11  UIKit                           0x00000001a28507f4 -[UIApplicationAccessibility openURL:] + 44
12  XXXX                            0x00000001008346a0 0x1000fc000 + 7571104
13  libdispatch.dylib               0x000000018d54e1fc _dispatch_call_block_and_release + 24
14  libdispatch.dylib               0x000000018d54e1bc _dispatch_client_callout + 16
15  libdispatch.dylib               0x000000018d552d68 _dispatch_main_queue_callback_4CF + 1000
16  CoreFoundation                  0x000000018e672810 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
17  CoreFoundation                  0x000000018e6703fc __CFRunLoopRun + 1660
18  CoreFoundation                  0x000000018e59e2b8 CFRunLoopRunSpecific + 444
19  GraphicsServices                0x0000000190052198 GSEventRunModal + 180
20  UIKit                           0x00000001945e57fc -[UIApplication _run] + 684
21  UIKit                           0x00000001945e0534 UIApplicationMain + 208
22  XXXX                            0x00000001003b6910 0x1000fc000 + 2861328
23  libdyld.dylib                   0x000000018d5815b8 start + 4
asked 01 Mar, 07:40
flohei's gravatar image

flohei
111

Hello,

Could you please let us know whether the "old" notification from the Notification Center you have tried to open was also with the Deep Link attached? Could you please check whether the issue is reproducible if the notification contains simple URL but not the Deep Link?

Also, may I ask you to contact our support service at help@pushwoosh.com so that we could pass the information to our Developers for further investigation?

Regards, Oleg Zhukov

permanent link
answered 03 Mar, 06:29
Oleg%20Zhukov's gravatar image

Oleg Zhukov
2174

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×344
×29
×10

question asked: 01 Mar, 07:40

question was seen: 869 times

last updated: 03 Mar, 06:29