Select to view content in your preferred language

User not prompted to login when clicking on Field Maps URL with portalURL set

313
5
10-14-2024 03:16 PM
NigelCharman
Occasional Contributor

When I'm not logged into Field Maps, clicking on a URL in the format https://fieldmaps.arcgis.app/?itemID=<myitemID>&referenceContext=open&portalURL=https%3A%2F%2F<myorg... shows the message

"Unable to open

The map needs to be shared with you"

After logging in, I am able to open the field map by clicking on the link.

The URL has been generated from the Field Maps Designer > Sharing page. The Web Map is hosted on ArcGIS Online.

The portalURL documentation states that the user will be "taken directly to the sign-in screen for your organization and prompted to sign in"

Any tips on how I can get this to prompt me to sign-in rather than showing this error message? 

0 Kudos
5 Replies
ColinLawrence
Esri Regular Contributor

Hello @NigelCharman , what device and Field Maps version are you seeing this problem on? It is true that the intention is to take you to the sign in page if the portalURL does not match the current portal (or there isnt one). 

Regards,
Colin
NigelCharman
Occasional Contributor

It's Field Maps 24.2.2 Build 1512 on a Samsung Galaxy A52s 5G, Android 14. Thanks.

0 Kudos
ColinLawrence
Esri Regular Contributor

I dont see the same issue using a map in our AGOL organization and the link from the Sharing page. If I am signed out of Field Maps it will take me directly to the sign in page and the portalURL that was passed is listed at the top of the sign in screen. What happens if you sign in manually and follow this same link? Have you tried clearing the app data or reinstalling the app?

Regards,
Colin
0 Kudos
NigelCharman
Occasional Contributor

Hi, the link works fine after signing in manually.

I think the problem is occurring since I'm also using public maps anonymously. Here's what I've found:

  1. Reinstall Field Maps, click on link and it prompts for sign in correctly. Sign in works and map opens.
  2. Reinstall Field Maps, skip sign in, click on link and I get the "Unable to open" message

I'm assuming it should still prompt for sign in, even if I've previously skipped sign in to open other maps.

Let me know if you want me to investigate any further or send you the links or logs?

0 Kudos
ColinLawrence
Esri Regular Contributor

I can actually reproduce this if I use "skip sign in" as well. It must not be looking at this "temp" portal as it would any other when executing the app link. I can get something logged to look into this further. Thanks for brining it up!

Regards,
Colin