Page does not load if location service disallowed

My app’s URL: my.spasoul.com
If the user disallow location service access the page is not loading.

The problem occurs because of the distance column value when the location services are off.
The column is not empty bu it does not have any value as well.
It cannot be equal to zero, it’s not equal to false.
It’s weird.

How I solve :
I had to add “user specific text field” and bind it to location component. Whenever it’s switched on distance is calculated with that field not from your current location.

1 Like


This is the cause of the problem

1 Like

Whenever locations services disallowed there should be a switch inside distance column such as “-1” or “false” or “empty”

1 Like

I had to completely disable distance function :confused:

I think we are experiencing the same problem. I am trying to understand your implementation but I don’t understand what you are describing:

I had to add “user specific text field” and bind it to location component. Whenever it’s switched on distance is calculated with that field not from your current location.

There is the location component which has a switch.
Whenever it’s true the source column is updated with the GPS value of the current session (location srv is ON).
After that whenever you are calculating a distance you are going to use this variable instead of using “current location”
But, I do not recommend this workaround it’s really not working smooth. The component has problem it’s not switching even when the location servies are ON. And I also believe that if the location services are off it should be disabled and grayed out (maybe)

I have location based content in my app. That’s why I needed this workflow.
I changed the whole approach after I had the problem above.

Now, I have QR codes in my locations ever QR code is a deepling to a specific location.

1 Like

OK, I understand.

If it helps, I came up with this design yesterday: Improved UX for Location Permissions

2 Likes