ASAPP.instance.getConversationStatusFromNotification
, which will return a non-null status object. The Customer App can now display user feedback as desired using the status object.
On iOS, if you have set a UNUserNotificationCenterDelegate
, it calls userNotificationCenter(_:willPresent:withCompletionHandler:) when a push notification is received while the app is in the foreground. In your implementation of that delegate method, call ASAPP.canHandleNotification(with: notification.request.userInfo)
to determine if ASAPP generated the notification. An alternative method is to implement application(_:didReceiveRemoteNotification:fetchCompletionHandler:), which is called when a push notification is received regardless of whether the app is in the foreground or the background. In both cases, you can access `