Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
Fix
isEqualToHandledNotification
for CleverTap notifications.If the app is launched from a CleverTap push notification, the consequent CleverTap notification opens will not work since
isEqualToHandledNotification
always returnstrue
for CleverTap notifications - for notifications without notification Id (lp_occurrence_id
key).Default CleverTap
openDeepLinksInForeground
totrue
when called fromnotificationOpened
, unlessopenDeepLinksInForeground
is explicitly set. Fixes an issue on Unity when the application is opened from a notification and the app takes a while to load. At that point, the notification open in CleverTap is executed when the app is in the foreground.Implementation
-1
.openDeepLinksInForeground
isnil
unless set explicitly. If not set, default to the notification event being Open or Receive. UseopenDeepLinksInForeground: true
ifOpened
.Testing steps
Is this change backwards-compatible?