I have a mobile app which uses google login and apple login.- In google login:when I use the navigator without the mobile preview( delete it from the URL), The login with google works perfectly. I understand that the mobile app needs json-config to build, but I couldn't find any source to illustrate the structure of the file. But when I use the generated mobile app, the startLogin function from the SocialLogin plugin returns Login Cancelled.
- In apple login:
The auth operation on apple finishes and send name, email, token ... But the app responds with invalid token..
This my json-config file:
{
"preferences": {
"android": [{
"name": "android-minSdkVersion",
"value": "24"
}]
},
"app_deeplink":{"url_scheme":"app85","url_host":"sociallogins","url_path":"/oauthcallback"},"app_configurations":[{"provider_id":"3","client_id":"MyGoogleID","client_secret":"MySecret","application_type_id":"1","client_token":"","url_scheme":""},{"provider_id":"2","client_id":"MyFacebookId","client_secret":"MyfacebookSecret","application_type_id":"1","client_token":"","url_scheme":""},{"provider_id":"1","client_id":"MyAppleID","client_secret":"MyAppleSecret","application_type_id":"1","client_token":"","url_scheme":""}]
}
As you can see here in the url returned, you can find my credentials and the token..
Hi @Nabil Kriden,
Thank you for your interest in our supported Social Login Mobile plugin.
You should obtain the "SocialLoginsConfigurations.json" file from the Social Login Configurator reactive web app where you should configure your social login providers (e.g. Google and Apple). You won't need to apply any changes to this file, and should add to the resources of your app in Service Studio after downloading it from the Configurator.
This documentation page explains how to set up social login providers for your app in more detail.
Please let us know if this helps.
Best regards,
Alexandre Jacinto