アプリ内モーダルメッセージ
モーダルは、デバイスの画面の中央に表示され、アプリのバックグラウンドから目立つように画面オーバーレイが表示されます。これらは、ユーザーにセールやプレゼントを利用するようにそれとなく提案するのに最適です。
![並んだ2つのモーダルインアプリメッセージ、画像とテキストの推奨事項を詳述しています。詳細については、次のセクションを参照してください。][1a]{: style=”max-width: 801px; border: none;”}
画像の仕様
Modal in-app messages are designed to fit the device at the best and most filling ratios possible, while staying true to the size and ratios of your chosen image or copy for your message.
While there are no limits to how many text characters you can include in an in-app message (as well as buttons, headline, main body, and others), we moderate how many text characters you use. Too much text will require users to expand and scroll the message.
All in-app messages have a recommended image size of 500 KB, maximum image size of 5 MB, and support PNG, JPG, and GIF file types.
Type | Aspect ratio | Image quality | Notes |
---|---|---|---|
Portrait full screen with text | 6:5 | High resolution 1200 x 1000 px Minimum resolution 600 x 500 px |
Cropping can occur on all sides, but the image will always fill the top 50% of the viewport. |
Portrait full screen (image only, with or without buttons) | 3:5 | High resolution 1200 x 2000 px Minimum resolution 600 x 1000 px |
Cropping can occur on the left and right edges on taller devices. |
Type | Aspect ratio | Image quality | Notes |
---|---|---|---|
Landscape full screen with text | 10:3 | High resolution 2000 x 600 px Minimum resolution 1000 x 300 px |
Cropping can occur on all sides, but the image will always fill the top 50% of the viewport. |
Landscape full screen (image only, with or without buttons) | 5:3 | High resolution 2000 x 600 px Minimum resolution 1000 x 600 px |
Cropping can occur on the left and right edges on taller devices. |
Type | Aspect ratio | Image quality | Notes |
---|---|---|---|
Modal (image only) | 1:1 | High resolution 1200 x 2000 px Minimum resolution 600 x 600 px |
The message will resize to fit images of most aspect ratios. |
Modal with text | 29:10 | High resolution 1450 x 500 px Minimum resolution 600 x 205 px |
Tall images will scale down and be horizontally centered. Wide images will be clipped on the left and right edges. |
より大きな画面
タブレットやデスクトップブラウザでは、モーダルアプリ内メッセージは、次のスクリーンショットに示されているように、アプリ画面の中央に表示されます。
![モーダルアプリ内メッセージが大画面に表示される様子。同様に電話の画面に、メッセージは画面の中央にあります。][1b]{: style=”max-width: 800px; border: none;”}
[1a]: /docs/ja/assets/img/modal-spec.png?4d5d38ad556c77ab741bc60e4750ed62 [1b]: /docs/ja/assets/img/modal-large-viewport.png?68040bf6ab8dcdd441479608afd75b16