I think I know the solution for you.
In OsmAnd, open menu, and switch on Modules >"Trip recording" on. This one should register the gpx file type for the OsmAnd app. Close OsmAnd (swipe off to completely close) and try to open the gpx file again.
Majka