@capgo/capacitor-social-login 7.8.1 → 7.8.3
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 +58 -15
- package/android/src/main/AndroidManifest.xml +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
|
|
3
3
|
|
|
4
4
|
<div align="center">
|
|
5
|
-
<h2><a href="https://capgo.app/?ref=plugin"> ➡️ Get Instant updates for your App with Capgo
|
|
6
|
-
<h2><a href="https://capgo.app/consulting/?ref=plugin">
|
|
5
|
+
<h2><a href="https://capgo.app/?ref=plugin"> ➡️ Get Instant updates for your App with Capgo</a></h2>
|
|
6
|
+
<h2><a href="https://capgo.app/consulting/?ref=plugin"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
9
|
## Fork Information
|
|
@@ -281,6 +281,59 @@ When using `mode: 'offline'`, the login response will only contain:
|
|
|
281
281
|
|
|
282
282
|
Initialize method to create a script tag with Google lib. We cannot know when it's ready so be sure to do it early in web otherwise it will fail.
|
|
283
283
|
|
|
284
|
+
## Troubleshooting
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
### Invalid Privacy Manifest (ITMS-91056)
|
|
288
|
+
If you get this error on App Store Connect:
|
|
289
|
+
|
|
290
|
+
> ITMS-91056: Invalid privacy manifest - The PrivacyInfo.xcprivacy file from the following path is invalid: ...
|
|
291
|
+
|
|
292
|
+
**How to fix:**
|
|
293
|
+
- Make sure your app's `PrivacyInfo.xcprivacy` is valid JSON, with only Apple-documented keys/values.
|
|
294
|
+
- Do not include a privacy manifest in the plugin, only in your app.
|
|
295
|
+
|
|
296
|
+
### Google Play Console AD_ID Permission Error
|
|
297
|
+
|
|
298
|
+
**Problem**: After submitting your app to Google Play, you receive this error:
|
|
299
|
+
```
|
|
300
|
+
Google Api Error: Invalid request - This release includes the com.google.android.gms.permission.AD_ID permission
|
|
301
|
+
but your declaration on Play Console says your app doesn't use advertising ID. You must update your advertising
|
|
302
|
+
ID declaration.
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
**Root Cause**: The Facebook SDK automatically includes the `com.google.android.gms.permission.AD_ID` permission, even when you're only using Google and Apple sign-in.
|
|
306
|
+
|
|
307
|
+
**Solutions**:
|
|
308
|
+
|
|
309
|
+
#### Solution 1: Remove AD_ID Permission (Recommended)
|
|
310
|
+
If you're not using Facebook login, add this to your app's `android/app/src/main/AndroidManifest.xml`:
|
|
311
|
+
```xml
|
|
312
|
+
<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove" />
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
Make sure you have the tools namespace declared:
|
|
316
|
+
```xml
|
|
317
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
318
|
+
xmlns:tools="http://schemas.android.com/tools">
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
#### Solution 2: Update Google Play Console Declaration
|
|
322
|
+
In Google Play Console → App content → Data safety:
|
|
323
|
+
1. Select "Yes, my app collects or shares user data"
|
|
324
|
+
2. Under "Data types" → "Device or other IDs" → Select "Advertising ID"
|
|
325
|
+
3. Specify usage purpose (usually "App functionality" and/or "Analytics")
|
|
326
|
+
|
|
327
|
+
#### Solution 3: Conditional Facebook Dependencies (Advanced)
|
|
328
|
+
For advanced users who want to completely exclude Facebook from builds, you can use Gradle's conditional dependencies, but this requires custom build configuration.
|
|
329
|
+
|
|
330
|
+
**Verification**: After implementing Solution 1, run:
|
|
331
|
+
```bash
|
|
332
|
+
./gradlew :app:dependencies --configuration debugRuntimeClasspath | grep facebook
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
The Facebook dependencies should still be present (for compatibility), but the AD_ID permission should be removed from your final APK.
|
|
336
|
+
|
|
284
337
|
## API
|
|
285
338
|
|
|
286
339
|
<docgen-index>
|
|
@@ -601,10 +654,6 @@ Construct a type with a set of properties K of type T
|
|
|
601
654
|
|
|
602
655
|
</docgen-api>
|
|
603
656
|
|
|
604
|
-
### Credits
|
|
605
|
-
|
|
606
|
-
This plugin implementation of google is based on [CapacitorGoogleAuth](https://github.com/CodetrixStudio/CapacitorGoogleAuth) with a lot of rework, the current maintainer is unreachable, we are thankful for his work and are now going forward on our own!
|
|
607
|
-
Thanks to [reslear](https://github.com/reslear) for helping to tranfer users to this plugin from the old one and all the work.
|
|
608
657
|
|
|
609
658
|
## Privacy Manifest for App Developers
|
|
610
659
|
|
|
@@ -672,13 +721,7 @@ Add this file in your app at: `ios/App/PrivacyInfo.xcprivacy`
|
|
|
672
721
|
}
|
|
673
722
|
```
|
|
674
723
|
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
### Invalid Privacy Manifest (ITMS-91056)
|
|
678
|
-
If you get this error on App Store Connect:
|
|
679
|
-
|
|
680
|
-
> ITMS-91056: Invalid privacy manifest - The PrivacyInfo.xcprivacy file from the following path is invalid: ...
|
|
724
|
+
### Credits
|
|
681
725
|
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
- Do not include a privacy manifest in the plugin, only in your app.
|
|
726
|
+
This plugin implementation of google is based on [CapacitorGoogleAuth](https://github.com/CodetrixStudio/CapacitorGoogleAuth) with a lot of rework, the current maintainer is unreachable, we are thankful for his work and are now going forward on our own!
|
|
727
|
+
Thanks to [reslear](https://github.com/reslear) for helping to tranfer users to this plugin from the old one and all the work.
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
|
|
4
4
|
<uses-permission android:name="android.permission.INTERNET"/>
|
|
5
5
|
|
|
6
|
+
<!-- Remove AD_ID permission if you're not using Facebook login to avoid Google Play Console errors -->
|
|
7
|
+
<!-- Uncomment the line below if you're only using Google/Apple login and getting AD_ID permission errors -->
|
|
8
|
+
<!-- <uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove" /> -->
|
|
9
|
+
|
|
6
10
|
<application>
|
|
7
11
|
<provider
|
|
8
12
|
android:name="com.facebook.internal.FacebookInitProvider"
|