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.

Roy Solberg
  • 18,133
  • 12
  • 49
  • 76
  • 5
    The Admob team acknowledged that its a bug on their end, hopefully they will be able to patch this up ASAP - https://groups.google.com/g/google-admob-ads-sdk/c/QWpl3IiGhho/m/v-b3QvrIAgAJ – Oush Nov 16 '20 at 02:58

1 Answers1

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")
  }
}
vonox7
  • 1,081
  • 13
  • 24