I am attempting to edit the Survey123 Template in AppStudio. My goal is to customize the template so that when users press Sign In, they are redirected to our organizational ArcGIS Online enterprise login page.
This customization allows our field staff to avoid pressing "Enterprise Login" from the main ArcGIS Online page, then typing in our organization short name (smgov), and then pressing sign in with their enterprise credentials.
What's very strange is that I was actually able to accomplish this by editing the Portal.qml file. I changed kDefaultPortalUrl from arcgis.com to smgov.maps.arcgis.com. I was excited because this worked, at first. Now, when I ran the Survey123 Template and pressed sign in, our Enterprise portal sign-in came up by default (yay!). But then, it just stopped working. I don't know what happened but now the edited kDefaultPortalUrl variable no longer influences the application's behavior.
Am I going about this the right way? How do I define the default Portal url?