RCS メッセージ
RCS (Rich Communication Services) は、Android デバイス向けの次世代メッセージングで、従来の SMS を超えるリッチメディア、インタラクティブ性、高度な機能を提供します。
概要
RCS は次のような強化されたメッセージング機能を提供します。
- リッチメディア (画像、動画、GIF)
- インタラクティブなボタンとカルーセル
- 既読通知と入力中インジケーター
- より多い文字数制限 (最大 3072 文字)
- より優れた配信追跡
- ブランド化された送信者の識別
利用可能な環境
- プラットフォーム: Android デバイスのみ
- ネットワーク: キャリアの RCS 対応が必要
- フォールバック: RCS を利用できない場合は自動的に SMS にフォールバックします
基本的な RCS メッセージ
リクエスト
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your RCS message text with rich formatting"
}
パラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
from | string | はい | 英数字の送信者 ID |
to | string | はい | 受信者の電話番号 (E.164) |
type | string | はい | "rcs" に設定します |
text | string | はい | メッセージ内容 (最大 3072 文字) |
messageData | object | いいえ | リッチメディアとボタン |
メッセージタイプ
テキストのみ
文字数制限が拡張されたシンプルなテキストメッセージ:
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Welcome to our service! RCS allows us to send much longer messages with rich formatting and interactive elements."
}
テキスト + 画像
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Check out our new product!",
"messageData": {
"media": {
"url": "https://example.com/product.jpg",
"type": "image/jpeg",
"height": 600,
"width": 800
}
}
}
テキスト + 画像 + ボタン
{
"from": "YourStore",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Summer Sale - Up to 50% off!",
"messageData": {
"media": {
"url": "https://example.com/sale-banner.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Shop Now",
"action": {
"type": "openUrl",
"url": "https://example.com/sale"
}
}
]
}
}
テキスト + 動画
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Watch our product demo",
"messageData": {
"media": {
"url": "https://example.com/demo.mp4",
"type": "video/mp4",
"thumbnail": "https://example.com/thumbnail.jpg"
}
}
}
テキスト + 複数のボタン
{
"from": "YourService",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your order #12345 is ready for pickup",
"messageData": {
"buttons": [
{
"text": "Track Order",
"action": {
"type": "openUrl",
"url": "https://example.com/track/12345"
}
},
{
"text": "Contact Support",
"action": {
"type": "dial",
"phoneNumber": "+380XXXXXXXXX"
}
},
{
"text": "Cancel Order",
"action": {
"type": "openUrl",
"url": "https://example.com/cancel/12345"
}
}
]
}
}
RCS カルーセル
スクロール可能なカルーセルに複数のアイテムを表示します。
{
"from": "YourStore",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Featured Products",
"messageData": {
"carousel": {
"cards": [
{
"title": "Product A",
"description": "Premium quality product",
"media": {
"url": "https://example.com/product-a.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Buy Now",
"action": {
"type": "openUrl",
"url": "https://example.com/product-a"
}
},
{
"text": "Details",
"action": {
"type": "openUrl",
"url": "https://example.com/product-a/details"
}
}
]
},
{
"title": "Product B",
"description": "Best seller",
"media": {
"url": "https://example.com/product-b.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Buy Now",
"action": {
"type": "openUrl",
"url": "https://example.com/product-b"
}
}
]
}
]
}
}
}
ボタンアクション
URL を開く
{
"text": "Visit Website",
"action": {
"type": "openUrl",
"url": "https://example.com"
}
}
電話番号に発信
{
"text": "Call Us",
"action": {
"type": "dial",
"phoneNumber": "+380XXXXXXXXX"
}
}
位置情報を送信
{
"text": "Share Location",
"action": {
"type": "shareLocation"
}
}
カレンダーイベント
{
"text": "Add to Calendar",
"action": {
"type": "createCalendarEvent",
"title": "Appointment",
"startTime": "2025-01-25T14:00:00Z",
"endTime": "2025-01-25T15:00:00Z"
}
}
メディア仕様
画像
- 形式: JPEG、PNG、GIF
- 最大サイズ: 2MB
- 推奨解像度: 800x600 または 1200x800
- アスペクト比: 16:9 または 4:3
動画
- 形式: MP4、3GP
- 最大サイズ: 10MB
- 最大再生時間: 2 分
- 推奨解像度: 1280x720
音声
- 形式: MP3、AAC
- 最大サイズ: 5MB
- 最大再生時間: 5 分
SMS へのフォールバック
RCS は次の場合に自動的に SMS にフォールバックします。
- 受信者が RCS を利用できない場合
- 受信者のデバイスで RCS が無効になっている場合
- ネットワークが RCS に対応していない場合
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Check out our new product!",
"messageData": {
"media": {
"url": "https://example.com/product.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Shop Now",
"action": {
"type": "openUrl",
"url": "https://example.com/shop"
}
}
]
},
"fallback": {
"type": "sms",
"text": "Check out our new product! Visit: https://example.com/shop"
}
}
ユースケース
EC
{
"from": "YourStore",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your order has been shipped!",
"messageData": {
"media": {
"url": "https://example.com/package.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Track Package",
"action": {
"type": "openUrl",
"url": "https://example.com/track/ABC123"
}
},
{
"text": "Contact Support",
"action": {
"type": "dial",
"phoneNumber": "+380XXXXXXXXX"
}
}
]
}
}
銀行
{
"from": "YourBank",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Low balance alert: Your account balance is $50",
"messageData": {
"buttons": [
{
"text": "View Balance",
"action": {
"type": "openUrl",
"url": "https://bank.example.com/balance"
}
},
{
"text": "Transfer Money",
"action": {
"type": "openUrl",
"url": "https://bank.example.com/transfer"
}
}
]
}
}
旅行
{
"from": "YourAirline",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your flight is departing in 3 hours",
"messageData": {
"media": {
"url": "https://example.com/boarding-pass.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Check-in",
"action": {
"type": "openUrl",
"url": "https://airline.example.com/checkin"
}
},
{
"text": "Add to Calendar",
"action": {
"type": "createCalendarEvent",
"title": "Flight Departure",
"startTime": "2025-01-25T10:00:00Z"
}
}
]
}
}
ベストプラクティス
コンテンツ
- ✅ 高品質な画像を使用する (最低 800x600)
- ✅ ボタンのテキストは短くする (2~3 語)
- ✅ リッチコンテンツには SMS フォールバックを用意する
- ✅ さまざまな Android デバイスでテストする
- ❌ 1 通のメッセージにボタンを 4~5 個以上設定しない
- ❌ 大きな動画ファイル (5MB 超) は避ける
メディア
- すべてのメディアに HTTPS の URL を使用する
- 画像をモバイル向けに最適化する
- アクセシビリティのため代替テキストを含める
- 送信前にメディアの URL をテストする
ボタン
- 1 通のメッセージにつき最大 4 個のボタン
- 明確な行動喚起のテキスト
- すべてのボタンアクションをテストする
- 利用できないアクションへのフォールバックを検討する
ブランディング
- 一貫した送信者 ID を使用する
- 適切な場合はブランドロゴを含める
- ブランドの声とトーンを維持する
- ビジュアルの一貫性を確保する
配信ステータス
RCS は強化された配信追跡を提供します。
- 送信済み: メッセージがキャリアに送信されました
- 配信済み: メッセージがデバイスに配信されました
- 既読: 受信者がメッセージを開きました
- 失敗: 配信に失敗し、フォールバックが実行されました
ステータスエンドポイントを使用してステータスを確認します。
次のステップ
- Viber メッセージ - 代替のリッチメッセージング
- SMS メッセージ - フォールバック用メッセージング
- ステータス確認 - 配信を追跡
- フォールバック戦略 - フォールバックの設定