Я запускаю код инициализации App-check в классе приложения Android при обратном вызове Create:
Код: Выделить всё
FirebaseApp.initializeApp(this);
FirebaseAppCheck.getInstance().installAppCheckProviderFactory(
BuildConfig.DEBUG ?
DebugAppCheckProviderFactory.getInstance() :
PlayIntegrityAppCheckProviderFactory.getInstance(), true);
Код: Выделить всё
implementation 'com.google.firebase:firebase-appcheck-debug:16.1.2'
implementation 'com.google.firebase:firebase-appcheck-playintegrity:16.1.2'
Код: Выделить всё
java.lang.Exception: Client is offline
at com.google.firebase.database.connection.PersistentConnectionImpl.lambda$get$1$com-google-firebase-database-connection-PersistentConnectionImpl(PersistentConnectionImpl.java:441)
at com.google.firebase.database.connection.PersistentConnectionImpl$$ExternalSyntheticLambda2.run(Unknown Source:8)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Подробнее здесь: https://stackoverflow.com/questions/791 ... einstalled
Мобильная версия