Data URI is null in onActivityResult

1. What is the problem? Be very detailed.
When a form is launched from the Kaznet app using startActivityForResult it does not return data from ODK Collect upon completion.
Originally the URI of the just completed form was being returned on activity result. It was being set ODK collect at this point
This was changed in this commit and therefore breaking everything.
2. What app or server are you using and on what device and operating system? Include version numbers.
I am using ODK Collect v2021.3.4 on an Emulated Google Pixel XL device on Android 7.0
3. What you have you tried to fix the problem?
I have tried to see if there is a way I can obtain the id of the newly edited form but to no avail.
4. What steps can we take to reproduce the problem?

* Install ODK Collect v2021.3.4
* Create a project
* Install and run an app that integrates with ODK Collect for the following
* Fetching/querying form instance details
* Downloading forms from compliant servers
* Start a form. 
* Edit a form instance
* Submit a form instance
* Check whether the Intent param contains a Uri while inside the onActivityResult of the launching activity (For me it is null)

5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.

Hi @Hilary_Egesa
Thanks for reporting the issue. I've added it to our repository:

We are going to investigate it right away.

Hi @Grzesiek2010 thanks for the quick response. I am looking forward to the progress and conclusions of your investigation.

@Grzesiek2010 Thanks a lot for the prompt fix.

As it sounds like you've seen, an update for this went out in ODK Collect v2022.1.2. Additionally, I've filed a documentation issue for this behavior at

If you depend on particular behavior for integrations, please make sure that you verify that it is documented and update docs if not. Some of those features were contributed without tests or documentation so they may seem unintentional and may be removed. In general, we expect that someone on your team is following the beta category and verifying Collect betas as they become available.