diff options
author | Ivan <Ivan164@users.noreply.github.com> | 2017-10-06 14:29:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-06 14:29:26 -0700 |
commit | cf17df7c6626d69b2e3afd076ef6ad0815dc8845 (patch) | |
tree | 2a91ac6ebd0357ad30be0c01f22f39f69981cabb | |
parent | b8d39fcabec10dde968d7e73aa946376f0f792a4 (diff) | |
parent | 13b88a84f296a3690354b4494edf34c0a735398c (diff) |
Merge pull request #341 from firebase/new_user_popup
New user popup for sample app
-rw-r--r-- | Example/Auth/Sample/MainViewController.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Example/Auth/Sample/MainViewController.m b/Example/Auth/Sample/MainViewController.m index e5333cf..282d9b8 100644 --- a/Example/Auth/Sample/MainViewController.m +++ b/Example/Auth/Sample/MainViewController.m @@ -1779,6 +1779,12 @@ static NSDictionary<NSString *, NSString *> *parseURL(NSString *urlString) { } if (authResult.additionalUserInfo) { [self logSuccess:[self stringWithAdditionalUserInfo:authResult.additionalUserInfo]]; + NSString *newUserString = authResult.additionalUserInfo.isNewUser ? + @"New user" : @"Existing user"; + [self showMessagePromptWithTitle:@"New Or Exisiting" + message:newUserString + showCancelButton:NO + completion:nil]; } [self showTypicalUIForUserUpdateResultsWithTitle:@"Sign-In" error:error]; }; |