Hi guys,,
i would like to share a piece of info regarding to oreo fashion login authentication.
but first of all i would like to thank
@Tomz and all the admins in BABIATO for the great efforts to provide us with awesome resources.
in app regeneration page there's a bug that after you fill all data and press register the button keeps loading without any result and also sign-in with google not working and returns with (ERROR: DEVELOPER ERROR)
To Configure Google sign-in you gonna need to go through some steps beside firebase authentication (sign-in methods) so after you finish your firebase authentication follow this steps to make Google sign-in works:
1- you need to configure a Google API Console project, through this link
https://developers.google.com/identity/sign-in/android/start-integrating#configure_a_project
click the button (Configure a project), and specify your app's package name when prompted (make sure it's the same package name in firebase). You will also need to provide the SHA-1 hash of your signing certificate (make sure it's the same SHA-1 hash in firebase).
2- Get your backend server's OAuth 2.0 client ID through this link,
https://console.developers.google.com/apis/credentials
under OAuth 2.0 Client IDs you will find Web client copy the Client ID, and copy Android client ID.
3- in oreo fashion app files you need to edit auth.js file you can find it in this path (rn_oreo\src\config\auth.js)
you will find webClientId: 'change-this-id-with-your-OAuth-2.0-Client-ID',
4- press enter for new line and insert this code
androidClientId: 'place-your-android-client-ID-here',
and save the file.
5- in your website main root you need to edit wp-config.php add this line and save
define('MBD_FIREBASE_SERVER_KEY', 'place-your-android-client-ID-here');
6- now at the top of Credentials page (
https://console.developers.google.com/apis/credentials) you will find a button (CREATE CREDENTIALS) press it and choose API KEY.
now your Google sign-in will work perfectly and also registration page loading bug will be solved
PS: the SHA-1 hash of you app will be changed after you release your app so you will need to create new OAuth 2.0 Client ID through this link
https://console.developers.google.com/apis/credentials
at the top of the page you will find button (CREATE CREDENTIALS) press it and choose OAuth Client ID, then choose (android) as application type and specify your app's package name when prompted (make sure it's the same package name in firebase). You will also need to provide the SHA-1 hash of your signing certificate (make sure it's the release SHA-1 hash). and also insert the release SHA-1 hash in firebase SHA certificate fingerprints.
if you guys have any issue or inquiry regarding to the app post reply here so every one can read the issue and how to solve it