App crashing when attempting to pick from Google photos with pick file function

I just noticed the pick files flow function works for only the device storage. If user tried to pick a file from Google photos, the app crashes. Is there a way to determine where the image is picked from and apply different logic, such as to get the data uri instead of file location. In java it is simply getData(). I am unsure what appgyver uses.