Closed fy5220 closed 1 year ago
I have the same issue with few other permissions
If you do not need Location permissions of all type you can add the following in your Podfile 'PERMISSION_LOCATION=0' In my case i need only location while in use , so i cannot add this line of code.
Even though I have added this line in my podfile as stated in the readme I received warning from AppStore Connect that I need to provide NSLocationWhenInUseUsageDescription
I have the same problem.
does some one fixed the issue?
I'm experimenting with some approaches (adding to build settings of target, project, schemes etc.) but nothing successful for now.
The only thing that worked was just adding the necessary permission strings to Info.plist. I added dummy texts such as "The app doesn't require access to location" etc.
after added the dummy texts, does show any dummy text to end user?
No, the text will be shown only when you actually request the permission from the user
Thank you, the great action.
No, the text will be shown only when you actually request the permission from the user
@orestesgaolin Thanks for your advice, but i guess Apple requires an explanation in App description or as a review note , why do we actually included this type of permission in out App. Did that happened to you?
From my experience I can tell that if you provide the permissions string similar to "We are not using location permission", "The camera permission is not required" or "The app doesn't require access to sensors" then the review is positive. As long as you don't ask for these permissions then it should be ok.
It's fairly common that some 3rd party libraries use references in code to some API requiring permission but aren't actually used (e.g. location). The Apple analysis will detect it in symbols and will require adding a corresponding permission string. If you are not using it then you shouldn't worry too much.
From a purist point of view, however, I would like to be able to remove these permissions if that's stated in the documentation of the plugin.
@aliakkawi the permission_handler lib added the permissions, so we can't remove the permissions.
I have commit to the apple connect review . wait the result.
@terry8204 Wish you good luck, update us with the results please.
Opinion:
For cases where your app does not need a given permission and you have to have a description string, I suggest instructing the user to deny the permission. "This app does not require access to ...X. Please deny this request." (Bonus points for instructing the user to alert you.)
Why? In case we get a rogue flutter package/library with malware - you can at least try to limit what that code can do.
@aliakkawi good luck, has passed the apple review.
@terry8204 Congratulation!, glad to hear that, thanks for updating us!.
add dummy texts such as "The app doesn't require access to location" ? Can the plugin fit to use permission when what we use?
Although add the unuse text can pass the apple review, it doesn't what we want, what do you think?
I guess the connectivity plugin requires NSLocationAlwaysUsageDescription/NSLocationWhenInUseUsageDescription permission, not permission-handler.
I wouldn't suggest using the approach of adding the permissions to your Info.plist if you're not using them. When users go to install your application on iOS 14 they'll see in the privacy details that your app is requesting all these permissions even though it isn't using them. It will lead users to pass on installing your app.
🐛 Bug Report
podfile
pubspec.yaml
info.plist
only have
Version: ^5.0.0+hotfix.4
Platform: