...
Code Block | ||
---|---|---|
| ||
class CustomPushService extends PushService { @Override public Notification buildForegroundNotification(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { NotificationChannel channel = new NotificationChannel("CustomPushService", "CustomPushService", NotificationManager.IMPORTANCE_LOW); NotificationManager notificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE); createYourNotificationChannelnotificationManager.createNotificationChannel(channel); } return new NotificationCompat.Builder( context, "YOUR_NOTIFICATION_CHANNEL_ID" ) .setSmallIcon(context.applicationInfo.icon) .setContentIntent(getFeedPendingIntent(false)) .build(); } } |
Code Block | ||
---|---|---|
| ||
BuzzAdPush buzzAdPush = new BuzzAdPush( CustomPushService.class, CustomNotificationWorker.class, App.getPushDialogConfig() ); |
PushService
가 제공하는 API
API | 설명 |
---|---|
| Feed 지면을 보여줄 수 있는 Intent 를 생성합니다.
|
Push Notification 클릭 동작 변경
...