I have integrated Google+ iOS SDK in an iPhone application.
I want to keep user signed in once user has entered account details.
The problem is that if application is terminated and opened again, user is signed out and I need to ask user to sign in.
Is there any way to store something like access token and use it instead of presenting sign in screen? or is it because Google itself sign out the user on application termination?
In my case, making GPPSignIn
object global solved the problem.
Here is how to do that :
In Supporting Files
folder->appname-Prefix.pch
file , add following lines :
#import <GooglePlus/GooglePlus.h>
GPPSignIn * signIn;
Below this lines :
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>