@capgo/capacitor-social-login 7.5.4 → 7.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -539,6 +539,30 @@ Add this file in your app at: `ios/App/PrivacyInfo.xcprivacy`
|
|
|
539
539
|
- Adjust the data types to match your app's usage and the SDK documentation.
|
|
540
540
|
- See [Apple docs](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/) for all allowed keys and values.
|
|
541
541
|
|
|
542
|
+
## Combine facebook and google URL handler in `AppDelegate.swift`
|
|
543
|
+
|
|
544
|
+
```swift
|
|
545
|
+
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
|
|
546
|
+
// Called when the app was launched with a url. Feel free to add additional processing here,
|
|
547
|
+
// but if you want the App API to support tracking app url opens, make sure to keep this call
|
|
548
|
+
|
|
549
|
+
// Return true if the URL was handled by either Facebook or Google authentication
|
|
550
|
+
// https://github.com/Cap-go/capacitor-social-login/blob/main/docs/setup_facebook.md#ios-setup
|
|
551
|
+
// https://github.com/Cap-go/capacitor-social-login/blob/main/docs/setup_google.md#using-google-login-on-ios
|
|
552
|
+
if FBSDKCoreKit.ApplicationDelegate.shared.application(
|
|
553
|
+
app,
|
|
554
|
+
open: url,
|
|
555
|
+
sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String,
|
|
556
|
+
annotation: options[UIApplication.OpenURLOptionsKey.annotation]
|
|
557
|
+
) || GIDSignIn.sharedInstance.handle(url) {
|
|
558
|
+
return true
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
// If URL wasn't handled by auth services, pass it to Capacitor for processing
|
|
562
|
+
return ApplicationDelegateProxy.shared.application(app, open: url, options: options)
|
|
563
|
+
}
|
|
564
|
+
```
|
|
565
|
+
|
|
542
566
|
## Troubleshooting
|
|
543
567
|
|
|
544
568
|
### Invalid Privacy Manifest (ITMS-91056)
|