From 207f551bad929b24ca69d4048ea7b1bb397927d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 11 Jul 2024 14:55:19 +0900 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E8=A4=87=E3=81=97=E3=81=9F=E5=87=A6?= =?UTF-8?q?=E7=90=86=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/example/childguard/TestService.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/src/main/java/com/example/childguard/TestService.java b/app/src/main/java/com/example/childguard/TestService.java index 4391c20..cfc0330 100644 --- a/app/src/main/java/com/example/childguard/TestService.java +++ b/app/src/main/java/com/example/childguard/TestService.java @@ -110,7 +110,6 @@ public class TestService extends Service { if (documentSnapshot.getBoolean("isReported")) { //ここスタート(リサイクル) ResetReported();// ResetReported();を処理→FireBaseのisReportedをfalseにする - NotificationSetting();//通知に関する設定のメソッド Notification(getApplicationContext());//通知を行うメソッド } } else {//isReportedがfalse=サイト上で降車状態のとき @@ -129,16 +128,6 @@ public class TestService extends Service { Log.d(TAG, "DocumentSnapshot successfully updated!")).addOnFailureListener(e -> Log.w(TAG, "Error updating document", e)); } - public void NotificationSetting() {//通知に関する設定の処理を行うメソッド - int importance = NotificationManager.IMPORTANCE_DEFAULT; - //通知チャネルの実装 - NotificationChannel channel = new NotificationChannel("CHANNEL_ID", "通知", importance); - channel.setDescription("第三者により置き去りの通報が行われたときに通知します。"); - - NotificationManager notificationManager = getSystemService(NotificationManager.class); - notificationManager.createNotificationChannel(channel); - } - private PendingIntent getPendingIntent(Context context, int requestCode, int flags) { Intent intent = new Intent(context, MainActivity.class); intent.setAction("OPEN_ACTIVITY");