Skip to content

Remove unused constant #986

Open

Description

@spkersten

🏗 Enhancement Proposal

Remove unused PERMISSION_PHOTOS_ADD_ONLY constant:

It is confusing as it suggest it should be used for addOnly photos permission, while it does nothing and PERMISSION_PHOTOS is needed.

Platforms affected (mark all that apply)

  • 📱 iOS
  • 🤖 Android

Activity

  1. TimHoogstrate commented on Jul 25, 2023

    @TimHoogstrate
    Contributor

    Dear @spkersten,

    This seems like a good improvement. I'll label this as an enhancement.

    Kind regards,

  2. added
    type: enhancement
    P3
    on Jul 25, 2023
  3. added
    platform: ios
    good first issue
    up for graps
    on Sep 18, 2023
  4. kumasan3 commented on Feb 20, 2024

    @kumasan3

    With PERMISSION_PHOTOS_ADD_ONLY=1, Permission.photosAddOnly.status keeps returning denied.

    It looks like PERMISSION_PHOTOS_ADD_ONLY has no effect at all and actually, PERMISSION_PHOTOS needs to be enabled.

    #if PERMISSION_PHOTOS
    #import <Photos/Photos.h>
    @interface PhotoPermissionStrategy : NSObject <PermissionStrategy>
    -(instancetype)initWithAccessAddOnly:(BOOL) addOnly;
    @end

    After that, Permission.photosAddOnly.status returns the correct value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3good first issueplatform: iostype: enhancementup for graps

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions