flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

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

Open stephane-archer opened this issue 2 years ago • 11 comments

trousseau

stephane-archer avatar Nov 01 '23 14:11 stephane-archer

@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.

darshankawar avatar Nov 02 '23 10:11 darshankawar

How do you do that for a Flutter app?

stephane-archer avatar Nov 02 '23 23:11 stephane-archer

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

darshankawar avatar Nov 03 '23 10:11 darshankawar

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

stephane-archer avatar Nov 03 '23 15:11 stephane-archer

@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.

darshankawar avatar Nov 07 '23 11:11 darshankawar

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...

stephane-archer avatar Nov 07 '23 15:11 stephane-archer

/cc @ncooke3 for thoughts on the issue reported.

darshankawar avatar Nov 08 '23 11:11 darshankawar

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

ncooke3 avatar Nov 08 '23 14:11 ncooke3

PODS:

  • Firebase/Analytics (10.16.0):
    • Firebase/Core
  • Firebase/Core (10.16.0):
    • Firebase/CoreOnly
    • FirebaseAnalytics (~> 10.16.0)
  • Firebase/CoreOnly (10.16.0):
    • FirebaseCore (= 10.16.0)
  • firebase_analytics (10.6.3):
    • Firebase/Analytics (= 10.16.0)
    • firebase_core
    • FlutterMacOS
  • firebase_core (2.21.0):
    • Firebase/CoreOnly (~> 10.16.0)
    • FlutterMacOS
  • FirebaseAnalytics (10.16.0):
    • FirebaseAnalytics/AdIdSupport (= 10.16.0)
    • FirebaseCore (~> 10.0)
    • FirebaseInstallations (~> 10.0)
    • GoogleUtilities/AppDelegateSwizzler (~> 7.11)
    • GoogleUtilities/MethodSwizzler (~> 7.11)
    • GoogleUtilities/Network (~> 7.11)
    • "GoogleUtilities/NSData+zlib (~> 7.11)"
    • nanopb (< 2.30910.0, >= 2.30908.0)
  • FirebaseAnalytics/AdIdSupport (10.16.0):
    • FirebaseCore (~> 10.0)
    • FirebaseInstallations (~> 10.0)
    • GoogleAppMeasurement (= 10.16.0)
    • GoogleUtilities/AppDelegateSwizzler (~> 7.11)
    • GoogleUtilities/MethodSwizzler (~> 7.11)
    • GoogleUtilities/Network (~> 7.11)
    • "GoogleUtilities/NSData+zlib (~> 7.11)"
    • nanopb (< 2.30910.0, >= 2.30908.0)
  • FirebaseCore (10.16.0):
    • FirebaseCoreInternal (~> 10.0)
    • GoogleUtilities/Environment (~> 7.8)
    • GoogleUtilities/Logger (~> 7.8)
  • FirebaseCoreInternal (10.17.0):
    • "GoogleUtilities/NSData+zlib (~> 7.8)"
  • FirebaseInstallations (10.17.0):
    • FirebaseCore (~> 10.0)
    • GoogleUtilities/Environment (~> 7.8)
    • GoogleUtilities/UserDefaults (~> 7.8)
    • PromisesObjC (~> 2.1)
  • FlutterMacOS (1.0.0)
  • GoogleAppMeasurement (10.16.0):
    • GoogleAppMeasurement/AdIdSupport (= 10.16.0)
    • GoogleUtilities/AppDelegateSwizzler (~> 7.11)
    • GoogleUtilities/MethodSwizzler (~> 7.11)
    • GoogleUtilities/Network (~> 7.11)
    • "GoogleUtilities/NSData+zlib (~> 7.11)"
    • nanopb (< 2.30910.0, >= 2.30908.0)
  • GoogleAppMeasurement/AdIdSupport (10.16.0):
    • GoogleAppMeasurement/WithoutAdIdSupport (= 10.16.0)
    • GoogleUtilities/AppDelegateSwizzler (~> 7.11)
    • GoogleUtilities/MethodSwizzler (~> 7.11)
    • GoogleUtilities/Network (~> 7.11)
    • "GoogleUtilities/NSData+zlib (~> 7.11)"
    • nanopb (< 2.30910.0, >= 2.30908.0)
  • GoogleAppMeasurement/WithoutAdIdSupport (10.16.0):
    • GoogleUtilities/AppDelegateSwizzler (~> 7.11)
    • GoogleUtilities/MethodSwizzler (~> 7.11)
    • GoogleUtilities/Network (~> 7.11)
    • "GoogleUtilities/NSData+zlib (~> 7.11)"
    • nanopb (< 2.30910.0, >= 2.30908.0)
  • GoogleUtilities/AppDelegateSwizzler (7.11.6):
    • GoogleUtilities/Environment
    • GoogleUtilities/Logger
    • GoogleUtilities/Network
  • GoogleUtilities/Environment (7.11.6):
    • PromisesObjC (< 3.0, >= 1.2)
  • GoogleUtilities/Logger (7.11.6):
    • GoogleUtilities/Environment
  • GoogleUtilities/MethodSwizzler (7.11.6):
    • GoogleUtilities/Logger
  • GoogleUtilities/Network (7.11.6):
    • GoogleUtilities/Logger
    • "GoogleUtilities/NSData+zlib"
    • GoogleUtilities/Reachability
  • "GoogleUtilities/NSData+zlib (7.11.6)"
  • GoogleUtilities/Reachability (7.11.6):
    • GoogleUtilities/Logger
  • GoogleUtilities/UserDefaults (7.11.6):
    • GoogleUtilities/Logger
  • nanopb (2.30909.1):
    • nanopb/decode (= 2.30909.1)
    • nanopb/encode (= 2.30909.1)
  • nanopb/decode (2.30909.1)
  • nanopb/encode (2.30909.1)
  • path_provider_foundation (0.0.1):
    • Flutter
    • FlutterMacOS
  • PromisesObjC (2.3.1)

DEPENDENCIES:

  • firebase_analytics (from Flutter/ephemeral/.symlinks/plugins/firebase_analytics/macos)
  • firebase_core (from Flutter/ephemeral/.symlinks/plugins/firebase_core/macos)
  • FlutterMacOS (from Flutter/ephemeral)
  • path_provider_foundation (from Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin)

SPEC REPOS: trunk: - Firebase - FirebaseAnalytics - FirebaseCore - FirebaseCoreInternal - FirebaseInstallations - GoogleAppMeasurement - GoogleUtilities - nanopb - PromisesObjC

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

stephane-archer avatar Nov 09 '23 20:11 stephane-archer

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

Lyokone avatar Jul 02 '24 09:07 Lyokone

@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.

stephane-archer avatar Jul 02 '24 10:07 stephane-archer

This is issue has been stale for a while so I will be closing this, if you are still experiencing this issue please feel free to reopen or open a new ticket so we can help you.

MichaelVerdon avatar Jul 30 '25 11:07 MichaelVerdon