Location Sharing

Hello, I am trying to build an SOS App, the app’s function is to call a certain number upon pressing a button, and also send your current location to the number. I am having difficulty with the location function, I tried setting the green block “location” in the [getcurrentLocation] block from the location sensor section as a variable, and using that variable in the share block, but when I tested the app, the text message was empty, I tried using the location block alone (not setting as a variable) and the same issue occurred, could anyone help me with this?