Geri4
Geri4

Reputation: 167

How to send SMS without opening the SMS app

Can I send to Windows Phone SMS directly , rather than through the SMS application?

I've already written a function to send through the app

public async void SendSms(string phone, string message)
{
    var chatMessage = new ChatMessage();
    if (phone != null)
    {
        chatMessage.Recipients.Add(phone);
    }
    chatMessage.Body = message;
    await ChatMessageManager.ShowComposeSmsMessageAsync(chatMessage);
}

Now, I want to send SMS is not through the standard application.

Upvotes: 4

Views: 111

Answers (1)

Igor Damiani
Igor Damiani

Reputation: 1927

It's not possible using the native Windows Phone SDK, because the philosopy "user first" don't permit this behavior. You must see the SMS app before sending any SMS. You must use an external service via http to get what you want.

Upvotes: 1

Related Questions