I tried to get real time notification on Android using FCM. When I try running my app using emulator, notification message appear correctly. but when I try it on real device (xiaomi redmi note 3), the notification doesn't appear. The token always return null, and I get this error:
FCM background sync failed: AUTHENTICATION_FAILED
I've been to try read all same problem, there are 2 reasons why the problem appears:
Device not have Google Play Services
No internet connection
but I'm sure that my device have Google Play Services and is connected to internet, but the problem still exists.
How can I solve this problem? Any suggestion would be appreciated.
i've been solved this problem btw. the problem appear because my device error sync with google acoount. so i try to re-login my google account and make sure that sync google isnt error then the problem was fix :D
Related
I have implemented App Check for my application , I have registered Sha256s,activated appcheck in console,initialized it buy it doesnt work with play Integrity !! I always get " Detected invalid AppCheck token. Reconnecting (0 attempts remaining) Firebase Database connection was forcefully killed by the server. Will not attempt reconnect. Reason: Invalid appcheck token" ,
But with safetynet it works well however as we know it will be deprecated
My code:
initialize app check
as you can see if I change play integrity by safetynet it works well ,i can access to my db,but safe net will stop working in about one year
I have already read all posts related to this problem on this web ,but i havent been able to find a solution Thanks in advance
I'm working on an android device which runs 5.1.1, and it's rooted. My plan is to implement firebase message service in the application I'm building which should run on the device. But initially It didn't have google play services so I installed in manually with 11.7.44 version. But the problem I'm getting now is, it doesn't get the firebase token still; I'm getting the following message:
FirebaseInstanceId: background sync failed: AUTHENTICATION_FAILED
Note that the device is connected to the internet, and also the program runs perfectly on normal android phones.
I'm suspecting whether I should install some other applications in order to run FCM correctly.
any ideas on that?
Thanks.
I have a xamarin android app and I want to add notifications. I followed the instructions from this link:
https://developer.xamarin.com/guides/android/application_fundamentals/notifications/remote-notifications-with-fcm/
Everything worked great until I got to the Implement Client App Code section. At first, when I clicked the button to get the InstanceId token, I didn't get anything. So I added the bit of code that shows the google_app_id. Mine does not match the mobilesdk_app_id value in the json file. But then I did get an InstanceId in the output. I used that id in the firebase console and the message fails, "Unregistered registration token". I followed the directions exactly, twice. And searched for the error but did not find any answers. I guess my token is wrong? How do I fix that?
I just went through the same tutorial and received the same error in the firebase console. My problem turned out to be my android emulator configuration.
In the Android Virtual Device Manager I had to set my device's Target to Google APIs
I also had to install Google Play services from the Android SDK Manager
Lastly, I uninstalled my app on the emulator and reinstalled it to refresh the token.
After these steps i was able to send push notifications from the firebase console.
This video helped me out.
I am trying out a Firebase Cloud Messaging app on the lines of this link https://www.simplifiedcoding.net/firebase-cloud-messaging-tutorial-android/
I have done all the config changes and coding as mentioned in the article. However, when I run my application, I see the below lines in the log:
W/InstanceID/Rpc: No response android.os.ConditionVariable#da895ac
D/FirebaseInstanceId: background sync failed: TIMEOUT, retry in 20s
I am not getting the Firebase Token. I have checked that NETWORK_PROVIDER is available. I am able to get maps and browse on my "Nexus 5X API 25 x86" emulator. The emulator has Google Play Services and is based on Google API.
Has anyone faced the TIMEOUT issue? How did you resolve it? Any pointers would be appreciated.
Figured out a workaround. Created a new emulator and it worked. Even though the new emulator is of same type, config etc of the earlier one, it seems to work with this new one. Not sure of the reason, though.
I am using Redmi Note 3 mobile
It is provided with Youtube as part of system App and cannot be uninstalled
Google Play Store keep sending notification about available update for Youtube, but when I opt for update, I get the following message:-
Can't install app
"YouTube" can't be installed.
Try again, and if the problem continues, get help troubleshooting.
(Error code: -501).
Clicking get help troubleshooting provided no solution.
I have taken the screen shot of error message and sent it to Redmi Mobile Service Center, who suggested factory reset for resolving the problem.
Is there any other solution for this error than factory reset?