Open userFortyTwo opened 3 years ago
@userFortyTwo - This issue resulted from a change in iOS 14.5 where previously-allowed redirect URLs now cause an error. We discovered this error shortly after the release of 14.5 and have patched the Runtime SDK for iOS to fix the issue. Downloading and building with the v100.11.1 version of the SDK should resolve your problem.
Thank you for using Data Collection!
When hitting the profile button and choosing "Sign In", the app immediately crashes on my iPhone X (MQAC2ZD/A) running iOS 14.6 (18F72) with the following output appearing in the console:
I am using an exact clone of the latest version of the data collection app (commit 437f6f5, May 8, 2021) without any modifications made to the source code. The only additional steps I have performed are registering an OAuth application in the ArcGIS Developer Dashboard with a
data-collection://auth
redirect URL and configuring its client ID in thedata-collection-ios/data-collection/.secrets
file (ARCGIS_CLIENT_ID=…
), as described in the README. The app was built using Xcode 12.5 (12E262) on macOS 11.4 (20F71).When performing the same steps in the iPad simulator, I get an additional stack trace:
I have tried modifying the
basePortalDomain
andwebMapItemID
inAppConfiguration.swift
to point to a custom web map. Since this is not a public web map, I then get a prompt upon app launch asking me to sign in to access the resource. When hitting the "Sign in" button on that prompt, the app crashes with the same error message.I do not see what's wrong here. The URL scheme is correctly configured in all
AppConfiguration.swift
,Info.plist
and the dashboard, so I'm suggesting that this is a bug.