zubairehman/Flogs

iOS Permissions

Henery309 opened this issue · 6 comments

Hi Thanks for this great library, it;s looking good I am thinking about using it.

I have a question regarding iOS permissions.
When do we need to ask for the permission to photo gallery? Is it just for the export file feature?
The App I am currently working on does not access photo gallery.

If I ask for the following permissions they will be rejected by the user. Does this mean flogs won't work?

NSPhotoLibraryAddUsageDescription
FLogs would like to save photos from the app to your gallery
NSPhotoLibraryUsageDescription
FLogs would like to access your photo gallery for uploading images to the app

Isn't there any alternative ways to save the logs? For example, can the logs be saved to applications instillation directory without asking for permissions and then access them from there?

My primary goal is to A: Generate logs, B: when user opens the app again send errors to API.

Same issue here

Will see if I can either remove or provide an alternative to this. Will update soon

@zubairehman Any update on this?

was this fixed? the app never prompts me to give these permissions on iOS, even though I do export files.
or does it depend on iOS version?

@zubairehman, Same issue. I'm not real familiar with the Apple ecosystem, so I'm curious, why does a logging package needs permission to access photos in the first place? This is really a roadblock to using this package with any Flutter app that is intended to target iOS.

@zubairehman , plus one on this. This package looks great and your efforts are much appreciated! But I found no explanation on why a logging package would need access to the photos library and this is worrisome. Could you please add some clarification on why/how f_logs needs these permissions? (maybe directly to the package's description on pub.dev). Many thanks!