question

MortenBangOlin-4743 avatar image
0 Votes"
MortenBangOlin-4743 asked MortenBangOlin-4743 commented

xamarin.essentials.SmsMessage return value

Hi all!
I am writing on an APP, that makes use of SmsMessage.composeasync.

My problem is that I need to register if the user has cancelled out, og pressed send in SMS window.

Is there any way to do this?

Regards,
Morten

dotnet-xamarin
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MortenBangOlin-4743 ,what do you mean by words I need to register if the user has cancelled out, og pressed send in SMS window ? Could you elaborate on it?

0 Votes 0 ·

Hello @JessieZhang-2116
Thanks for your message.

What I mean is, that I need to know, if the user has pressed send, or cancelled out of the SMS message, I present. My APP needs to know this, as I have toggle buttons, that need to be switched off or on, dependning on the users having actually send the SMS, that is presented through SmsMessage.

Regards,
Morten

0 Votes 0 ·
RedShanks avatar image RedShanks MortenBangOlin-4743 ·

Have you got the solution?

0 Votes 0 ·

No, not yet :(
I'm pretty sure, it can be done in Xcode, as I have seen APPs, that can do this.

I simply can't figure out how to get the info back from the task

0 Votes 0 ·

1 Answer

JessieZhang-2116 avatar image
0 Votes"
JessieZhang-2116 answered MortenBangOlin-4743 commented

Hello,


Welcome to our Microsoft Q&A platform!


What I mean is, that I need to know, if the user has pressed send, or cancelled out of the SMS message, I present. My APP needs to know this, as I have toggle buttons, that need to be switched off or on, dependning on the users having actually send the SMS, that is presented through SmsMessage.


For this, you can easily find out by whether or not you press the Send button.

If I understand correctly, when you click the send button, you can enable the toggle button, otherwise, disable it.

And there is an article about this, you can check it here: Send SMS Using Xamarin.Essentials .

Hope it can help you.

Best Regards,

Jessie Zhang


If the response is helpful, please click "Accept Answer" and upvote it.


Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Jessie!
I'm so sorry for not returning. No disrespect.

Thanks for your answer. My problem is, though, that the SMS feature in Essentials is a void task, which prevents me from knowing if the user actually pressed Send in the IOS SMS editor itself. I have seen other APPs being able of this, and I suspect, that they use a module of some sort native to the different OS'es

Regards,
Morten

0 Votes 0 ·