I am attempting to integrate onboarding screens into my Android application that allows users to register through Email/Password, or through Logging in with Facebook.
Is there any way of programmatically knowing when the user logs in through Facebook whether it is the first time of doing so?
I only want the Onboarding Activity to launch the first time the user logs in through Facebook (after accepting the permissions request), not every time they log in.
Any help with this issue would be hugely appreciated.
use facebook API's to authenticate the users.Login to the facebook developer console to register your application and get the key hashes that will uniquely define your application.
Use facebook Api by this link https://developers.facebook.com/ register your app.
and follow the instruction as mentioned.Then you can integrate facebook logging in your App
Related
I want to enable two factor authentication (with Push Notification) in my JAVA based web application.
I searched and found I can use Google & Microsoft authenticator app and can enable two factor authentication, I have successfully done POC for this and it works well with random code generated in Authenticator app and on my web app server and can verify the code. https://medium.com/#ihorsokolyk/two-factor-authentication-with-java-and-google-authenticator-9d7ea15ffee6
Now I want to enable Push notification in a same way, whenever user login to my webApp,after user name & password verification, I want to send push notification to user's registered mobile number OR in user's Google/Microsoft authenticator app, with YES, NO options. user will then select YES or NO and based on that response, user should be able to login in my web app.
I searched but not find any such API of Google or Microsoft which I can use in my web App to support push notification. Appreciate your help if any one can provide links to such API docs or have any other suggestion to achieve this requirement.
Thanks
i'm new to android studio, and i dont know much about it. My question here is do android provide any authentication method like aspx / php (laravel) that check if a user stay logged in and etc.
From what i learnt so far, i have to sign in to my app by receiving json/xml data from my web service, so my app just display the next screen after the id/password is correct? Is there any more security issue that i need to worried about? Aspx authentication do authenticate on every page even after your first login. But after some research i dont see android studio have this kind of authentication. Am i missing something?
You can use Firebase Authentication for sign-in methods and user management.
You can add Firebase to Android Studio in Tools > Firebase.
No there is no default function in android that does what you want, you have to add a new sdk to handle this issue. You Can Use Firebase as Aviad Nemet said. Or you save in the shared preferences that you user is authenticated after login success. Saving in the Shared Preferences is safe.
I have two android app with the SalesForce SDK integrated, but the case is if I installed one app in mobile and I launched another then it's SalesForce login page is not getting appeared.
Please give me solution or tell me the reason why it is happening if anyone know.
Thanks in advance.
Add "account_type" tag in your strings.xml
It will avoid conflict of two sales force sdk in single device.
You should check if the session ID is active for Salesforce.
SalesForce OAuth2 Ongoing Authorization flow documentation says
The customer opens a mobile app.
If the session ID is active, the app starts immediately. If the session ID is stale, the app uses the refresh token from its initial authorization to get an updated session ID.
The app starts.
Please read the Salesforce OAuth2 Authentication Flow for details.
I have an Android Application and I want to integrate my android application with
Fitbit Tracker(fitbit). And I want to count the number of steps moved by the user by using that Fitbit Tracker and want back the number of step taken by the particular user in my application, so I can calculate the amount of calories burn during the walking activity.
Any help will be appreciable.
If you want to connect your android app to fitbit tracker then you should call fitbit apis for accessing fitness data related to user. First do authentication process and then you can access users data from fitbit server. You can get more information here.
Its late but can be helpful.
Fitbit don't allow 3rd party app to get the data from the device. It is synchronized with the fitbit application on the phone and is available through the Fitbit API.
During registration of application, if you dont have callback url, you can use your fitbit profile as the url & you can use your own name as organization name.
You can check this out for implementation.
I am trying to make an application which logs into facebook by asking for the email and the password of the user, without taking him to the WebView pop-up. Is there any way to do this? I have been trying to do some HTTP manipulation but i couldn't succeed!
Thank you!
Android Dont provide native support of facebook and twitter integration so i think you must pop up atleast one time for login facebook then you save user email to your local db and then use it :)
If you use the latest Facebook SDK for android, v3.6.0, https://github.com/facebook/facebook-android-sdk, the default behavior is:
If the user doesn't have the Facebook app installed, then the user will see the web view popup and has to type username and password manually.
If the user has the Facebook app installed, but hasn't approved the permissions, then your app will switch to Facebook app where the user can approve the permissions and come back to your app.
If the user has the Facebook app installed and already approved the permissions, and the user will see a native android dialog.
At any time, if you change permission requirements, then since the user needs to approve the additional permissions, in that case your app will also switch to the Facebook app.
If you don't want to provide native support, you have to handle all of these and has to frequently update your code, because Facebook updates its SDK and deprecates old methods quite often. The best practice is simply sticking to the Facebook SDK, unless you have any other requirements.