# Reducing ANR errors in an Android application by investigating Application.onCreate and Firebase Cloud Messaging

DevFeed: [Reducing ANR errors in an Android application by investigating Application.onCreate and Firebase Cloud Messaging](<https://devfeed.tech/articles/anrs-2-23633.md>)

Original publisher: [Read original article](<https://habr.com/ru/companies/badoo/articles/539728/>)

Author: lukaville (Badoo)

Published: 2021-01-28T15:14:55Z

Content type: tutorial

Language: ru

Sources: [Badoo EN](<https://devfeed.tech/sources/badoo-en.md>), [Badoo RU](<https://devfeed.tech/sources/badoo-ru.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Firebase](<https://devfeed.tech/topics/firebase.md>), [Google Play](<https://devfeed.tech/topics/google-play.md>), [Messaging](<https://devfeed.tech/topics/messaging.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [anr](<https://devfeed.tech/tags/anr.md>), [app-startup](<https://devfeed.tech/tags/app-startup.md>), [cloud-messaging](<https://devfeed.tech/tags/cloud-messaging.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [google-play](<https://devfeed.tech/tags/google-play.md>)

## AI overview

This second part of a technical article examines ANR errors in an Android application. The authors found that about 60% of ANRs occurred during Application.onCreate and concluded that long execution, often involving Firebase Cloud Messaging, was likely the main cause.

## Source excerpt

В первой части статьи мы поговорили о том, что такое ANR (Application Not Responding), и рассмотрели несколько способов сбора информации об этих ошибках. А сегодня я расскажу о проблемах, которые мы обнаружили в нашем приложении, о том, как мы их исправляли и что из этого в итоге получилось. Время запуска приложения Первое, что можно сделать, чтобы уменьшить количество ANR-ошибок, -- попробовать найти самые частые причины их возникновения. Начать можно с консоли Google Play -- проанализировать самые большие группы ошибок. Читать далее