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
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docs/AUTHENTICATION.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -536,6 +536,32 @@ Make sure the URL Scheme for `REVERSED_CLIENT_ID` is in `app/App_Resources/iOS/I
536
536
</array>
537
537
```
538
538
539
+
*NOTE:* iOS 10 and below issue for Google Auth when opening from a modal.
540
+
541
+
If you are planning to open Google Auth from a modal view you may encounter this error resulting in nothing happening (no google auth dialog) on iOS 10 and below:
542
+
543
+
```
544
+
Warning: Attempt to present <SFSafariViewController: 0x7fa575968470> on <UILayoutViewController: 0x7fa575e3d710> whose view is not in the window hierarchy!
545
+
```
546
+
547
+
To solve, you will want to pass in the appropriate iOS controller of the active view. This can be accomplished as follows:
548
+
549
+
```js
550
+
firebase.login({
551
+
type:firebase.LoginType.GOOGLE,
552
+
ios: {
553
+
controller:topmost().ios.controller
554
+
}
555
+
}).then(
556
+
function (result) {
557
+
JSON.stringify(result);
558
+
},
559
+
function (errorMessage) {
560
+
console.log(errorMessage);
561
+
}
562
+
);
563
+
```
564
+
539
565
#### Android
540
566
541
567
1. If you didn't choose this feature during installation you can uncomment `google-services-auth` in `node_modules\nativescript-plugin-firebase\platforms\android\include.gradle`
0 commit comments