Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reporting SMS delivery result for SendSmsInBackground method for Android via an event. #115

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

soroshsabz
Copy link

No description provided.

@VahidShir
Copy link

VahidShir commented Aug 20, 2020

Usage:

Before sending the SMS, subscribe to delivery result event:

by a delegate:

CrossMessaging.Current.SmsMessenger.OnSmsDeliveryResult += delegate(bool isSuccessful)
{
    // our code
};

By a method:

private void OnSmsDeliveryResult(bool isSuccessful)
{
    // our code
}

CrossMessaging.Current.SmsMessenger.OnSmsDeliveryResult += OnSmsDeliveryResult;

And then send the SMS:
CrossMessaging.Current.SmsMessenger.SendSmsInBackground(recipient, message);

@snice1981
Copy link

Hi

How can I get this change but still using the nuget package ?

Thanks

@VahidShir
Copy link

For what you want, this repository's author would need to accept this PR and merge it to master and publish a new release. But sadly as this repository is no longer maintained you can fork it and publish your own Nuget.

@snice1981
Copy link

Thank you @VahidShir for your reply. For now, I just compiled it on my local computer and referenced it locally. I'll see if it's better to push it as personal nuget package.

@soroshsabz
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants