What is the "AdMob Offline Notifications" notification channel?
Asked Answered
T

1

10

All of the sudden I saw that our app had a new notification channel named "AdMob Offline Notifications".

We do use AdMob, so I assume it's created by Google's library, but I can't find any documentation on it. I'm wondering on what that channel is used for, and if it's possible to not have it at all.

The channel is created as soon as the app is started the first time. The id of it is offline_notification_channel and its importance is set to low (no vibration, no sound).

I did manage to find others wondering about the same at https://groups.google.com/g/google-admob-ads-sdk/search?q=%22admob%20offline%20notifications%22 , but no answers so far.

Tiannatiara answered 5/11, 2020 at 9:28 Comment(1)
The Admob team acknowledged that its a bug on their end, hopefully they will be able to patch this up ASAP - groups.google.com/g/google-admob-ads-sdk/c/QWpl3IiGhho/m/…Kellsie
H
6

Until Admob fixes this issue as Oush pointed out, you can just delete the notification channel right after it was crated by admob, so it won't confuse your users:

MobileAds.initialize(context) {
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
    val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
    notificationManager.deleteNotificationChannel("offline_notification_channel")
  }
}
Haphtarah answered 9/12, 2020 at 13:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.