firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.71k stars 3.97k forks source link

🐛 [Firebase/Analytics] Firebase Analytics asks for a password to access the Mac OS Keypass #11811

Open stephane-archer opened 1 year ago

stephane-archer commented 1 year ago

trousseau

darshankawar commented 1 year ago

@stephane-archer Can you take a look at https://github.com/firebase/flutterfire/issues/8811#issuecomment-1245953448 and check if it helps in your case ?

As mentioned in it: please enable the Keychain Sharing capability for your macOS targets to make sure everything works properly.

stephane-archer commented 1 year ago

How do you do that for a Flutter app?

darshankawar commented 1 year ago

Check below links and see if they help in your case or not:

https://developer.apple.com/documentation/xcode/configuring-keychain-sharing https://firebase.google.com/docs/auth/ios/single-sign-on

stephane-archer commented 1 year ago

I don't want to use anything related to the keychain, my app doesn't use authentication, and I want the app to be able to use Firebase Analytics without spamming my users for keychain access. If it's not possible, I just removed Firebase from my app

darshankawar commented 1 year ago

@stephane-archer I think, to allow keychain access in mac is one of the steps as also mentioned int https://github.com/firebase/flutterfire/issues/8811 which doesn't seem to be specific to Flutter app in general. Just allowing the keychain access should be able to resolve the issue if you are already on latest version of firebase-ios-sdk as also mentioned in the linked issue.

stephane-archer commented 1 year ago

Do you understand that asking for these kinds of access makes any Firebase App look like a Virus? Would you trust an app with a relatively low user base that asks for all sorts of permission the first time it starts? Especially Keychain access, people think I'm stilling their password...

darshankawar commented 1 year ago

/cc @ncooke3 for thoughts on the issue reported.

ncooke3 commented 1 year ago

@stephane-archer, what version(s) of Firebase is being used? Do you have a Podfile.lock to share?

stephane-archer commented 1 year ago

PODS:

DEPENDENCIES:

SPEC REPOS: trunk:

EXTERNAL SOURCES: firebase_analytics: :path: Flutter/ephemeral/.symlinks/plugins/firebase_analytics/macos firebase_core: :path: Flutter/ephemeral/.symlinks/plugins/firebase_core/macos FlutterMacOS: :path: Flutter/ephemeral path_provider_foundation: :path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin

SPEC CHECKSUMS: Firebase: 25899099b77d255a636e3579c3d9dce10ec150d5 firebase_analytics: 3055ea80e91f42cb1309e3eb6e10bb0895e232e9 firebase_core: 879ea61470dc218a61dafb38d2fbde609d2e353f FirebaseAnalytics: 7b41efc4eba5ff841cc94d5994b5f339361258f4 FirebaseCore: 65a801af84cca84361ef9eac3fd868656968a53b FirebaseCoreInternal: 2cf9202e226e3f78d2bf6d56c472686b935bfb7f FirebaseInstallations: 9387bf15abfc69a714f54e54f74a251264fdb79b FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 GoogleAppMeasurement: 079d7632810e9d9704a99932547ba1554acc4342 GoogleUtilities: 202e7a9f5128accd11160fb9c19612de1911aa19 nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5 path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4

PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367

COCOAPODS: 1.14.2

Lyokone commented 4 months ago

Hello @stephane-archer, I'm not reproducing this issue using latest version, is it still happening for you?

stephane-archer commented 4 months ago

@Lyokone, my users saw that not me (the creator of the app), you should try to ship on a different system to reproduce the issue.