Youtube Error Code: -501 - android

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?

Related

Firebase unable to process request due to missing initial state

I am trying to use phone auth from firebase and I get this error now.
Unable to process request due to missing initial state. This may happen if browser session storage is inaccessible or accidentally cleared.
This was working a week ago and no longer works.
I have solved this by registering my app with SafetyNet with SHA2. To do this follow these steps:
Get your SHA2. If you don't know how to get this, follow this tutorial:
https://www.youtube.com/watch?v=kLaNnuoqnmA
Note. This youtube link is for SHA1 but you will notice that SHA2 will be shown here if you pay attention.
Go to your Firebase Console then, go to Project Settings > App Check. You will notice your app is "Unregistered." click this to register your app.
Enter the SHA2 you copied and Accept some terms below then click Save. you will notice the "Registered" with green check icon.
Btw, this error happens on one of my devices but not on another. I also searched through this error and no one has solved this including this page. This happens in my phone authentication using firebase when getting an OTP as I send my phone number. The app tries to redirect you to a browser for Recaptcha for verification if you don't have SafetyNet. Thus, having no SafetyNet will cause your app to always be redirected for Recaptcha which sometimes causes an error. Thus, to solve this, register your app with Safety Net. to understand this, read this documentation.
https://firebase.google.com/docs/auth/android/phone-auth?authuser=0
Focus on 2. Enable App Verification and you will notice that recaptcha is just an alternative for SafetyNet.
It had on the Ionic/Angular/Capacitor app too. i.e. Android and Chrome. Firebase Auth with Microsoft Login.
So I have cleared all the chrome browser data on the Android device and then no issues. i.e. working fine now.
More workarounds: https://github.com/firebase/firebase-js-sdk/issues/4256
I experienced the issue with an iphone web app. I went into Settings -> Safari and disabled 'Prevent Cross-Site Tracking'.

Xamarin Android app 504 error

I just went live with my android app (Xamarin) -- and all my users are getting a -504 error when they try to install the application. Please help!
The app name is 'ControlTower' (the one with a tick symbol); can you tell me what I might have done wrong
Seems to download fine here. So I don't know who "all your users" are, but they might want to check this link: http://appslova.com/fix-android-504-error/
The error 504 code appears while attempting to download apps or games
in the Google Play Store. This is a gateway timeout error and is
generally associated with slower internet connections or mobile data
networks. Simple fix that worked for some is turning your mobile data
off and then back on. You can try it now by turning your Airplane mode
on and then off or by going to settings >> data usage>> turn off
Mobile data and turn it back on. Now try to download or update the app
via Google Play. If that didn’t work, some users have even solved the
Google Play Store error 504 by freeing some space in their android
device by uninstalling unwanted apps or games. If these Android fixes
didn’t work there are more to go in this post for “App” could not be
downloaded due to an error. (504)
Has more to do with the user's device than anything else. You say it just went live. It might have to fall through to all proxies and servers etc. So it might just be a small hiccup while going live on the app store.

Getting log info from a downloaded app

I have an android app uploaded in google marketplace.
I have been reported an error from a user, which happens only in a specific device.
It is not a crash, the application just doesn't work exactly as expected. I have tried to reproduce the error using the emulator with the exact android version he's using and it works fine.
I am sure I could determine the problem If I'd have access to the Logcat entries.
I suppose the answer is negative, but it is any way the user can get these entries and send them to me? ( of course I cannot tell him to install eclipse or adb to gather the log entries ).
What is the best practice to be able to get error information from your app, once it is uploaded to the market? ( I don't mean crashes where an error report can be sent by android, just something that it is not working as expected ).
The application aLogcat can do the trick.
https://play.google.com/store/apps/details?id=org.jtb.alogcat&feature=nav_result#?t=W251bGwsMSwxLDMsIm9yZy5qdGIuYWxvZ2NhdCJd
And I tested it on my 4.1.1 device.
(I don't know how to post this as a comment instead of answer)
there are several apps on android market that allows to get logs and send them by email or upload them to dropbox... I used this one: https://play.google.com/store/apps/details?id=com.xtralogic.android.logcollector

Push C2DM notification Did not work

I followed the same steps that are mentioned in the "Android Cloud to Device Messaging (C2DM) - Tutorial", downloading the source code for the project and customizing it for my purpose (changing the package name and role e-mail sender).
Unfortunately I get an error message stating:
"Unable to start service Intent
{act=com.google.android.c2dm.intent.REGISTER ... }: not found" in logcat.
Knowing that I have added a Google account to the emulator which is different than the one I used when signing up on the service in the first place.
Can anyone provide help or direction in how can I get the registeration key correctly setup and solve this problem?
I think I figure the solution for my above question which is, you have to create new AVD using android AVD manager that its target Google APIs either level 8 or 15 or whatever, not using android API.
and also you have to have google account that added to your emulator which is the role e-mail that you used in development process of your application.
I hope that solve all problems faced other developers regarding this issue.

Unable to parse response error while uploading screenshots on google play (Android Market)

I just signed up with Market and uploaded my app. On the next screen, it is asking me to upload assets. After i choose screen shots for the app and hit upload, it gives me an error saying "Unable to parse response. If you have a browser extension or add-on installedwhich changes the JSON response, please disable and refresh this page."
I tried using Firefox, Chrome and IE but i am getting the same error.
On the Home page, it says
"Your Registration to Google Play is still being processed.
You can upload applications to Google Play but you cannot publish until your registration is completed.".
I guess this error has something to do with my registration as it is still in the pending stage. I dont know what do they want me to do in order to complete the registration.
If someone has faced this problem and was able to fix it, your help will be highly appreciated.
Apparently the error is gone today. I sent them couple of emails and they replied back saying they have approved my registration. I guess its not them but it got fixed as the payment cleared from the credit card. If you have this issue, send them an email or wait till the charge is cleared off in the credit card.

Categories

Resources