I have successfully create a simple android application that successfully logs into Google using an Azure app service.
ListenableFuture<MobileServiceUser> mLogin = mClient.login(MobileServiceAuthenticationProvider.Google);
Futures.addCallback(mLogin, new FutureCallback<MobileServiceUser>() {
@Override
public void onFailure(Throwable exc) {
createAndShowDialog(exc.toString(), "Error");
}
@Override
public void onSuccess(MobileServiceUser user) {
createAndShowDialog(String.format(
"You are now logged in - %1$2s",
user.getUserId()), "Success");
}
});
At this point I have successfully logged in and have received an Auth token and a UserID.
My question is no where online can I find any way get extra profile information for the logged in user. I have seen some suggestions about using ServiceUser rather than MobileServiceUser but don't seem to have any luck making a ServiceUser object. That can be found here. How to retrieve user's additional information from Azure Mobile/App Services?
Does anyone know of a solution?
Thanks in advance!