I successfully used phone verification in debug mode through FireAuth.
However after I release this app, it stop working and throws below error message.
I add SHA:1 and SHA:256 keys of google console to firebase project.
What is the problem?
E/FirebearCryptoHelper: Exception encountered during crypto setup:
Protocol message contained an invalid tag (zero).
E/FirebearCryptoHelper: KeysetManager failed to initialize - unable to get Public key
E/RecaptchaActivity: Could not generate an encryption key for reCAPTCHA - cancelling flow.
W/System: Ignoring header X-Firebase-Locale because its value was null.
V/FA: Screen exposed for less than 1000 ms. Event not sent. time: 139
V/FA: Connection attempt already in progress
V/FA: Activity paused, time: 7928726295
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 5
E/zzf: Failed to get reCAPTCHA token with error [An internal error has occurred. [ Failed to generate/retrieve public encryption key for reCAPTCHA flow. ]]- calling backend without app verification
I/ViewRootImpl#af348ef[RegisterActivity]: stopped(false) old=false
I/DecorView: notifyKeepScreenOnChanged: keepScreenOn=false
I/ViewRootImpl#af348ef[RegisterActivity]: Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)0 dur=5 res=0x1 s={true 529370561488} ch=false fn=47
V/FA: Activity resumed, time: 7928726304
W/gchunon_androi: Accessing hidden field Ljava/net/Socket;->impl:Ljava/net/SocketImpl; (unsupported, reflection, allowed)
W/gchunon_androi: Accessing hidden method Ljava/security/spec/ECParameterSpec;->setCurveName(Ljava/lang/String;)V (unsupported, reflection, allowed)
E/FirebaseAuth: [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17093 null
D/로그인 중복: com.google.firebase.auth.FirebaseAuthException: This request is missing a valid app identifier, meaning that neither SafetyNet checks nor reCAPTCHA checks succeeded. Please try again, or check the logcat for more details.
V/FA: Inactivity, disconnecting from the service
I/gchunon_androi: Compiler allocated 4546KB to compile void android.view.ViewRootImpl.performTraversals()
Related
I've recently tried implementing Pusher's Chatkit into my android app along with some Kotlin plugins and am now running into this error that I cannot resolve.
E/Drawable: Unable to decode stream: android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
the error I'm getting right below it is:
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
Which is through throwing me for a loop because my internet is working fine although a couple lines further down, I get:
W/Firestore: (21.3.0) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
Process 15216 terminated.
Note: I've started to get this error above about not having a good connection ever since I started working more at cafes instead of at home since I needed to get out. In order to work offline, firebase asked me to opt into an offline mode I've been getting this notification of not being able to connect ever since.
I am following along to the getting started page here and have completed up to the end of the "Displaying Messages" section however when I go to the activity, it just stalls and blanks out. I have been searching StackO and the rest of the web for the past 2 days to try to resolve the conflict to no avail. All of the similar posts I have looked at dont seem to resolve the issue.
similarPost#1 but I'm not trying to save to a bitmap
Here is the entire stack trace:
E/Drawable: Unable to decode stream: android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/DynamiteModule: Local module descriptor class for providerinstaller not found.
I/DynamiteModule: Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller: Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
I/ghborsbookshel: The ClassLoaderContext is a special shared library.
I/chatty: uid=10086(com.example.android_myneighborsbookshelf) AsyncTask #2 identical 1 line
I/ghborsbookshel: The ClassLoaderContext is a special shared library.
V/NativeCrypto: Registering com/google/android/gms/org/conscrypt/NativeCrypto's 286 native methods...
W/ghborsbookshel: Accessing hidden method Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (light greylist, reflection)
I/ProviderInstaller: Installed default security provider GmsCore_OpenSSL
W/Firestore: (21.3.0) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
Process 15216 terminated.
It seems to have fixed itself except for the unable to decode stream error however it doesn't crash, it just shows up in the log.
I checked for updates, cleaned, rebuild, invalidated caches and restarted, and shut down my emulator. I also restarted my computer completely 2x and that seems to have fixed it.
My app was working fine till last week. I haven't changed anything in the source code but suddenly my app keeps crashing whenever the login, register or forgot password links, all of which are connected to Firebase.
Also, can someone please tell me how to attach the log properly? I'm unable to format it.
Thanks in advance!
My log:
05-04 11:52:59.592 25672-25697/com.securitytechno2018 V/FA: Connecting to remote service
05-04 11:52:59.599 25672-25697/com.securitytechno2018 V/FA: Processing queued up service tasks: 4
05-04 11:52:59.599 25672-25697/com.securitytechno2018 E/FA: Failed to send current screen to service
05-04 11:52:59.599 25672-25697/com.securitytechno2018 E/FA: Failed to send current screen to service
05-04 11:52:59.599 25672-25697/com.securitytechno2018 E/FA: Discarding data. Failed to send event to service
05-04 11:52:59.600 25672-25697/com.securitytechno2018 E/FA: Discarding data. Failed to send event to service
05-04 11:52:59.603 25672-25672/com.securitytechno2018 W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
05-04 11:52:59.605 25672-25697/com.securitytechno2018 V/FA: Processing queued up service tasks: 0
05-04 11:53:30.178 23026-26580/? D/FA-SVC: No app data available; dropping event: com.securitytechno2018
05-04 11:53:45.533 23912-26810/? W/CronetSyncConnectionRcs: Upload content type not set.
05-04 11:53:46.014 2936-26865/? I/SQLiteConnectionPool: The connection pool for /data/user/0/com.google.android.gms/databases/phenotype.db has been closed but there are still 1 connections in use. They will be closed as they are released back to the pool.
05-04 11:56:09.340 2936-2950/? W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/phenotype.db' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
Change the firebase version & Google Play Service version in your dependency. First update google play services; If it works ignore the firebase version.
Here's an answer to similar question.
Before adding firebase analytics my app worked really fast. It has a lot of request which are sequential.
However, as soon as I added firebase analytics my app's internet requests froze and I got a lot of logs which consume time for no purpose.
W/System: ClassLoader referenced unknown path: /data/app/my.project.-1/lib/arm64
W/art: Verification of void my.project.App.<init>() took 133.425ms
D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
D/FirebaseApp: Initialized class com.google.firebase.iid.FirebaseInstanceId.
V/GoogleSignatureVerifier: com.google.android.gms signature not valid. Found: <Some big sequence of characters>
I/FA: Tag Manager is not found and thus will not be used
D/ChimeraCfgMgr: Reading stored module config
I/DynamiteModule: Considering local module com.google.android.gms.crash:0 and remote module com.google.android.gms.crash:2
D/ChimeraFileApk: Primary ABI of requesting process is arm64-v8a
D/FirebaseCrashReceiverServiceImpl: onCreate
I/DynamiteModule: Selected remote version of com.google.android.gms.flags, version >= 1
This is quite important, because I wait about 5-6 seconds until my own requests start to execute.
When I was using Parse from Facebook, I could test notification while in development (i.e. no app on the Play Store). But right now I am trying to implement Firebase into my app. My app is not published yet. I am done with android side implementation and am trying to send a notification from the Firebase console to my app. But my device never receives the notification. Why is that? I am targeting "All Users" because firebase does not have a version or any of my topics.
OKAY
So I did some more troubleshooting and here it is: my device is receiving notifications, but it's doing so weirdly:
when the app is open and the user is interacting with it, the notification goes through the expected pathway of calling onMessageReceived.
When the app is closed (not in recent apps either), the notification skips calling onMessageReceived and displays a notification in the status bar.
But then here is the log from FireBase when onMessageReceived is skipped
05-24 07:15:52.842 D/TimaKeyStoreProvider: TimaSignature is unavailable
05-24 07:15:52.842 D/ActivityThread: Added TimaKeyStore provider
05-24 07:15:53.102 D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
05-24 07:15:53.132 D/FirebaseApp: Initialized class com.google.firebase.iid.FirebaseInstanceId.
05-24 07:15:53.142 D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
05-24 07:15:53.222 I/FA: App measurement is starting up, version: 9080
05-24 07:15:53.222 I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
05-24 07:15:53.352 D/FirebaseApp: Initialized class com.google.android.gms.measurement.AppMeasurement.
05-24 07:15:53.352 I/FirebaseInitProvider: FirebaseApp initialization successful
05-24 07:15:53.372 D/AlgorithmsProvider: onCreate
05-24 07:15:53.452 I/FA: Tag Manager is not found and thus will not be used
For the display-messages (messages with notification tag), it's the expected behaviour that the onMessageReceived only called when the app is on foreground.
If you want to use data-messages (message without notification tag), you can't do it via console (at least until this time). You have to manually create post request to FCM server. You can see that post request example from answer to this question How to handle notification when app in background in Firebase.
Every once in a while, typically when I do a new install of my App, I will attempt to authenticate with our HTTPS Auth endpoint, the request takes a very long time (around 20-40 seconds) and then fails with an unknown error. I turned on Verbose Volley tracing and I see this nonsense about safebrowsing.google.com. What the heck is happening and how do I make it stop? I am using a Nexus 5 with 4.4 KitKat over wifi.
2662 qtaguid I Failed write_ctrl(u 71) res=-1 errno=22
2662 qtaguid I Untagging socket 71 failed errno=-22
2662 NetworkManagementS.. W untagSocket(71) failed with errno -22
2662 Finsky D [1] 3.onErrorResponse: Verification id=7 error response com.android.volley.NoConnectionError: java.net.UnknownHostException: Unable to resolve host "safebrowsing.google.com"
: No address associated with hostname
2662 Volley D [1] Request.finish: 40045 ms: [ ] https://safebrowsing.google.com/safebrowsing/clientreport/download 0xc9395b26 NORMAL 11
I search inside Volley's code and can't find the URL "safebrowsing.google.com"
I think that maybe your Auth endpoint doesn't accept your request params and redirects you to this domain.
It is Google feature to detect potentially harmful app:
https://support.google.com/accounts/answer/2812853?hl=en
Android calc hash of your app and send to Google for check on this address:
https://safebrowsing.google.com/safebrowsing/clientreport/download
If apk unknown it can upload it to Google for check.