My mobile application fail to be redirected to GOJEK application, what to do?
If you are using android application web view, there's configuration needed to allow open deeplink to other application.
Please make sure that the web view allow opening gojek:// deeplink protocol.
Please refer to this link ↗ for more detail. You need to modify your web view shouldOverrideUrlLoading functions as follows :
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
LogUtils.info(TAG, "shouldOverrideUrlLoading: " + url);
Intent intent;
if (url.contains("gojek://")) {
intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(url));
startActivity(intent);
return true;
}
}
On iOS application web view, you need to add LSApplicationQueriesSchemes key to your app’s Info.plist, please find the detail on below code :
<key>LSApplicationQueriesSchemes</key>
<array>
<string>gojek</string>
</array>
Updated 9 months ago