18
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

iOS, Android で SMS アプリを起動する a タグを調べてみた

Last updated at Posted at 2015-10-08

HTML から sms アプリを起動する方法がないか調べてみた
基本的には、sms:: で起動可能

<a href="sms:09000000000">SMS 起動</a>

ただし、メッセージを入れる方法が、iOS、Android で異なっていた

iOS

iOS の場合は、番号に続けて &body=メッセージ の形式で追加

<a href="sms:09000000000&body=testMessage">SMS 起動テスト</a>

SMS 起動テスト

Android

Android の場合は、番号に続けて ?body=メッセージ の形式で追加

<a href="sms:09000000000?body=testMessage">SMS 起動テスト</a>

SMS 起動テスト

18
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?