— ヘッドアップ通知に対応する
ヘッドアップ通知に対応させる場合、下記の設定が必要です。
1. Androidアプリ側の設定
ヘッドアップ通知はIMPORTANCE_HIGHの通知チャネルとして設定する必要があるため、アプリ側で適切な設定が必要です。
下記は設定例です。
NotificationChannel channel = new NotificationChannel("headsup_channel", "ヘッドアップチャンネル", NotificationManager.IMPORTANCE_HIGH);
channel.setDescription("ヘッドアップ通知のテストです");
channel.setShowBadge(true);
notificationManager.createNotificationChannel(channel);
2. pushの接客サービス側の設定
チャンネルID(Android)に、1で設定したchannel_id(上記例では"headsup_channel")を設定します。
Updated 6 days ago