title: iOS : Google Sigin error, Your app is blocked
body: <p>on time of sign-in from google, this error appears</p>
  <p>&quot;This app tried to access sensitive info in your Google account. To keep your account safe, google blocked this access<a href="https://i.stack.imgur.com/8bm00.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8bm00.jpg" alt="enter image description here" /></a>&quot;</p>
  <p>my code is mention below where i called google SignIn</p>
  <pre><code>#pragma mark - Google Drive Login
  -(void)googlePlusLogin{
  
      GIDSignIn *signin = [GIDSignIn sharedInstance];
      signin.shouldFetchBasicProfile = true;
      signin.delegate = self;
      signin.presentingViewController = self.window.rootViewController;
      //signin.uiDelegate = self;
  
      NSString *driveWrite = @&quot;https://www.googleapis.com/auth/drive&quot;;
      NSArray *currentScopes = [GIDSignIn sharedInstance].scopes;
    //  [GIDSignIn sharedInstance].scopes = [currentScopes arrayByAddingObject:driveScope];
      [GIDSignIn sharedInstance].scopes = [currentScopes arrayByAddingObject:driveWrite];
      [self performSelector:@selector(checkForLoginInGoogle) withObject:nil afterDelay:0.1];
    
  }
  
  -(void)checkForLoginInGoogle{
      GIDSignIn *signin = [GIDSignIn sharedInstance];
  
      if ([signin hasPreviousSignIn]) {
          [signin restorePreviousSignIn];
      }
      else{
          [signin signIn];
      }   
  }
  </code></pre>