https://vk.com/dev/android_sdk
Notes:
-
Add a dependence to module gradle file like this instead of using a jar or copying the wole lib:
implementation ('com.vk:androidsdk:2.0.0') { exclude group: 'com.android.support' }
Its is necessary to avoid error with different android support version. VKsdk uses 27.0.2
-
Use
AuthVkInteractor
interactor with a callback in the constructor -
Ask to reauthorize when access to email was forbidden.
-
To get a developer SHA hash key start gradle task android -> sign report. You need a SHA1 from a output.
-
Implementation of an email getter in AuthVkInteractor.
https://developers.facebook.com/docs/facebook-login/android
Notes:
-
You need a convert SHA from point #4 for VK to base64.
-
Add a dependence as follow:
implementation ('com.facebook.android:facebook-login:4.40.0') { exclude group: 'com.android.support' } implementation 'com.android.support:cardview-v7:28.0.0' implementation 'com.android.support:customtabs:28.0.0'
Its is necessary to avoid error with different android support version. FB uses 27.0.2
-
Do not use a LoginButton from the instruction, use a
AuthFbInteractor
https://developers.google.com/identity/sign-in/android/start-integrating
Notes:
- Should try without a creation of the app in console.