Xamarin.Plugins
Xamarin.Plugins copied to clipboard
Reporting SMS delivery result for SendSmsInBackground method for Android via an event.
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);
Hi
How can I get this change but still using the nuget package ?
Thanks
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.
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.
@snice1981 this code in https://github.com/BSVN/Xamarin.Plugins and you can use NuGet from https://www.nuget.org/packages/BSN.Common.Xam.Plugins.Messaging