Skip to main content

SendSMS

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Deliver a simulated text message, to see what an app does when one arrives mid-flow. These call app_sms.

SendSMS​

func (d *Device) SendSMS(ctx context.Context, from, text string) error

SendSMS delivers a simulated text message. Emulator only.

Examples​

Deliver a text message​

if err := dev.SendSMS(ctx, "5559876", "Your code is 123456"); err != nil {
return err
}

The same call from the command line, mobium sms "Your code is 123456" --from 5559876, printed on an Android 15 emulator:

delivered a message from 5559876

mobium sms "Your code is 123456" --from 5559876 on an Android 15 emulator

mobium sms "Your code is 123456" --from 5559876 on an Android 15 emulator