Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

fix deeplink plugin no compatible issue with inAppBrowser plugin for Android platform #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ private void handleIntent(Intent intent) {
// store message and try to consume it
storedMessage = new JSMessage(host, launchUri);
tryToConsumeEvent();
/*
* inAppBrowser breaks the intent load feature, just remove the data in Intent to avoid duplicated call deeplink features,
* this case is only happend with no SPA application,
* once user goBack to the index page from deeplink, it will trigger again deeplink logic. to fix this bug, only clear the data.
* */
intent.setData(null);
}

/**
Expand All @@ -219,4 +225,4 @@ private ULHost findHostByUrl(Uri url) {
}

// endregion
}
}