Open donadev opened 1 week ago
duplicate of #103
and you still can just write some mock description in Info.plist to pass auto-checks of appstore.
Thanks! If I understood correctly, the library will not trigger at runtime permission requests for these services I don't use, correct?
Issue
My iOS app using
moko-permissions
was rejected by App Store Connect becauseInfo.plist
keys forNSContactsUsageDescription
andNSMotionUsageDescription
were missing. This happened despite not using these features, as the library implicitly referenced them.Problem
Unused permissions are included by default, leading to:
Info.plist
keys.Proposed Solution
Explicit Permission Registration
Allow developers to register only the permissions they need:
Build-Time Validation
Warn if required
Info.plist
keys are missing or if unregistered permissions are included.Documentation Update
Guide users on registering permissions and preventing app store issues.
Benefits