Skip to content

Commit 7528f69

Browse files
committed
Don't try to open the deep link URL if there was no match
1 parent 6a34aa1 commit 7528f69

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -1367,8 +1367,11 @@ private void handleDDL(JSONObject response) {
13671367
IterableLogger.d(TAG, "handleDDL: " + response);
13681368
try {
13691369
MatchFpResponse matchFpResponse = MatchFpResponse.fromJSONObject(response);
1370-
IterableAction action = IterableAction.actionOpenUrl(matchFpResponse.destinationUrl);
1371-
IterableActionRunner.executeAction(getMainActivityContext(), action, IterableActionSource.APP_LINK);
1370+
1371+
if (matchFpResponse.isMatch) {
1372+
IterableAction action = IterableAction.actionOpenUrl(matchFpResponse.destinationUrl);
1373+
IterableActionRunner.executeAction(getMainActivityContext(), action, IterableActionSource.APP_LINK);
1374+
}
13721375
} catch (JSONException e) {
13731376
IterableLogger.e(TAG, "Error while handling deferred deep link", e);
13741377
}

0 commit comments

Comments
 (0)