Closed Chandanjee closed 4 years ago
@Chandanjee can you provide steps to reproduction for the issue you're seeing, as well as more context around the error message?
@Chandanjee
2) Any particular reason for wrapping your call to the Braze delegate in an asyncAfter
block? You should call the Braze delegate synchronously within your didReceive
implementation.
4) You can access userInfo
in the UNNotificationResponse
object passed into the UserNotificationCenter delegate. e.g.:
let userInfo = response.notification.request.content.userInfo
Thanks. @Bucimis I have got info from below code. let userInfo = response.notification.request.content.userInfo AND
func handleAppboyURL(_ url: URL, from channel: ABKChannel, withExtras extras: [AnyHashable : Any]) -> Bool { let tag = extras["tag"] as? String let category_id = extras["categoryid"] as? String let category_url = extras["categoryurl"] as? String let v_id = extras["id"] as? String if tag == "video"{
}
if (url.host == "deeplink") {
NSLog("Received link with host.")
return true;
}
// Let Braze handle links otherwise
return false;
}
Report
completionHandler () -> () 0x0000000104dfe29c BrazeDemo`partial apply forwarder for reabstraction thunk helper from @escaping @callee_unowned @convention(block) () -> () to @escaping @callee_guaranteed () -> () at
Describe your environment.
What did you do?
What did you expect to happen?
What happened instead?
Steps to reproduce
Code Snippet
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
Are you doing any feature customizations that may relate to the issue? Can you share the code snippet?
Project that demonstrates the issue