Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK-274] Fix open notification #432

Merged
merged 3 commits into from
Apr 15, 2021
Merged

[SDK-274] Fix open notification #432

merged 3 commits into from
Apr 15, 2021

Conversation

nzagorchev
Copy link
Contributor

What Where/Who
JIRA Issue SDK-274

Background

Notification Open Action not working on iOS 13 when App is running in the background and the notification is opened from locked screen.

Implementation

  1. Remove the UIApplicationState check.

  2. Add isDuplicateNotification:userInfo check. This prevents showing in-app confirm message for the Push (the one we show when a notification arrives while the app is in foreground) when it was opened.
    This was side effect from step 1. The notification open action was executed correctly but when returning to the app, this confirm was also shown.

Testing steps

Manual Testing on iOS 14 and iOS 13 using Rondo iOS.

Locked App State Success
N/A Foreground Yes
Yes Background Yes
No Background Yes
Yes Not running Yes
No Not running Yes

Is this change backwards-compatible?

Yes

@nzagorchev nzagorchev requested a review from dejan2k April 14, 2021 14:34
@nzagorchev nzagorchev merged commit 592b4a5 into master Apr 15, 2021
@delete-merged-branch delete-merged-branch bot deleted the sdk-274-push-ios13 branch April 15, 2021 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants