-
-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What to use as an alternative to the deprecated onActivityResult
method?
#1144
Comments
Thanks for opening this issue!
|
Hey @Code-B1 thanks for opening this. Indeed starting from AndroidX Fragment 1.3 they deprecated the From what I understood the problem is not in the I have created an issue on the documentation repo. If you're interested you can create a PR to help others not get confused. 😊🤞 Good luck, |
I'm closing this; we could have transferred this issue to the docs repo, but since there is a new issue there, I reclassified this as a support question that requires no further action. |
onActivityResult
method?
@L3K0V Thank you for the prompt response, I had found this article also when trying to research this however, I was unable to adopt this to work for the facebook login, (I apologise, as this is likely due to me being very new to Kotlin) however I cannot seem to find a way to get this to fire in the correct order. The old method utilizes the I assume a lot of my confusion is down to my lack of knowledge in Kotlin, as I cannot seem to work out an alternative way to get the data returned from Unfortunately, this means I won't be able to help with a PR :( but I will definitely be looking forward to the updated documentation when it becomes available. Until then I shall keep pursuing trying to get this working :( |
New Issue Checklist
Issue Description
I have noticed that when implementing the Facebook login that we are still having to override
OnActivityResult()
however, this has since been deprecated (it appears as if it still works for now however, I assume not for much longer).I was wondering if there was a new login method available that we can use ? which avoids overriding this method ? or am I possibly using the incorrect method ? (I am currently using
ParseFacebookUtils.logInWithReadPermissionsInBackground
as per the documentation)I wonder if you may be able to assist ? or advise if this method is still safe to use moving forward.
Steps to reproduce
Use
ParseFacebookUtils.logInWithReadPermissionsInBackground
to log into Facebook and overrideOnActivityResult()
Actual Outcome
I notice when I override the
OnActivityResult()
that there is a strikethrough this method (though it does appear to work)Expected Outcome
To not be using any deprecated methods to log into Facebook
Parse Android SDK
2.0.4
The text was updated successfully, but these errors were encountered: