How do I extact location from SMS?

I want to extract a location from an SMS and put it into my App. How do I do it?

give us an example of sms content.

It's a decimal location -35.02427,138.55515
That's all the SMS contains. I will later have to have it converted to DMS But first things first.

SMS

Split the SMS text at ',' then in the resulting 2 item list, I am guessing item 1 is latitude and item 2 is longitude.

Latitude only runs from -90 to +90, so I'm probably right.

You are correct in the Lat Lon, And I have no problem with the split. But how do I get that from the incoming SMS into my App?

I've never used it.

But here's the doc:

https://ai2.appinventor.mit.edu/reference/components/social.html#Texting

Thanks ABG, but that doesn't help me.

Events
MessageReceived(number,messageText)
Event that’s raised when a text message is received by the phone. Using this block will add dangerous permissions that will require additional approval if your app is submitted to the Google Play Store.

This event should deliver the sms message text, according to the doc.

Please show the blocks you used.

I have not used any blocks yet.

So how do you know that what @ABG showed you doesn't work?

I read the link he shared. I used an extension to read the SMS into the APP but it doesn't have any way to copy into a textbox or label. I have asked the Extension developer to do that, but have not had a reply yet.

What about providing a link to that extension?

The texting component can do that if your app is up and running, however if your app is closed, you need background functionality. The texting component can only display a notification (there is currently still a bug and thel fix is still not available in production)

The sms receiver extension might be interesting for you: it is able to start your app after an sms has been received

Taifun

The Extensions are not posible into the AI2-iOS (they are valids only in AI2-Android).