Opening ODK Collect App from HTML Link

Hi Team,

I am trying to open the ODK Collect app directly from a browser using an HTML <a> tag with specific parameters for launching a form. However, the app does not open. Below is the code snippet I used:

<!DOCTYPE html>
<html>
<head>
<title>Open ODK Form</title>
</head>
<body>
<h1>Testing ODK Collect Integration</h1>
<p>This is a test for opening a form in the ODK Collect app.</p>

<!-- Attempt 1 -->
<a href="intent://org.odk.collect.android/forms/{form_id}#Intent;scheme=odk;end">Open Form in ODK Collect</a>

<!-- Attempt 2 -->
<a href="odkcollect://form/{form_id}">trees_follow_up</a>

</body>
</html>

Despite these attempts, the app does not launch.

Could someone please help me understand:

  1. If the intent structure or URI scheme (odkcollect://) is correct?
  2. What changes are needed to make this work?
  3. Are there any app or device-specific settings that need to be configured for the links to function?

Any guidance or examples would be greatly appreciated.

Thanks in advance!