You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Customizing of Phone Auth is planned to be implemented in 2017 Q4
73
+
Customizing of Phone Auth is planned to be implemented in 2017 Q4
74
+
75
+
## Integration cheat sheet
76
+
Here you can find steps things that need to be checked in case of any issues with Firebase Phone Auth integration problems.
77
+
78
+
In case need to handle push notifications yourself:
79
+
80
+
1. Add `APNS Key` or `APNS cert` to Firebase console project.
81
+
<br>If `APNS cert` is used than check that you uploaded certificate with the same `bundleID` as Firebase iOS app `bundleID`.
82
+
1. In the Xcode `Project settings` -> `Capabilities` enable `Push Notifications`
83
+
1. In the project `Info.plist` set to `NO` value of `FirebaseAppDelegateProxyEnabled` (add this key if needed)
84
+
1. In the `AppDelegate` `didRegisterForRemoteNotificationsWithDeviceToken` call `[FUIAuth.defaultAuthUI.auth setAPNSToken:deviceToken]`
85
+
<br>In this case The type of the token (production or sandbox) will be attempted to be automatically detected. There is other method to set it manually.
86
+
1. In the `AppDelegate` `application:didReceiveRemoteNotification:fetchCompletionHandler:` call `[FUIAuth.defaultAuthUI.auth canHandleNotification:userInfo]`
87
+
1. In the `AppDelegate` `application:didFinishLaunchingWithOptions:` call `[FIRApp configure]`
88
+
1. In the `AppDelegate` `application:openURL:options:` return `[FUIAuth.defaultAuthUI handleOpenURL:url sourceApplication:sourceApplication]`
89
+
1. Add `REVERSED_CLIENT_ID` as URL scheme to `Project settings`
90
+
1. Add `GoogleService-Info.plist` to your project
91
+
1. In you controller call:
92
+
```objective-c
93
+
[FUIAuth defaultAuthUI].delegate = self; // delegate should be retained by you!
0 commit comments