Mathieu Acthernoene

Results 108 comments of Mathieu Acthernoene

@mikehardy It doesn't exist for iOS 14.x (where the limited feature has been added first). So the solution is partial here.

@mikehardy I think we could listen for `PHFetchResultChangeDetails` (https://developer.apple.com/documentation/photokit/phfetchresultchangedetails) on iOS < 15, will try to implement it.

Thanks a lot for this one! However, is it possible for you to migrate the module to ObjC? There's already too much languages on this repository (ObjC, Java, TypeScript, C#…).

@grit96 The library has a builtin escape hatch for these cases: https://github.com/zoontek/react-native-permissions/blob/37d732e8333f1a653300292e82d08decaf9e3995/ios/RNPermissions.m#L363 Get `isFlaggedAsRequested` value on check. If it's false, return "NotDetermined". If it's true, you can perform a request...

@grit96 Exactly. With your current request code: ```objc - (void)requestWithResolver:(void (^ _Nonnull)(RNPermissionStatus))resolve rejecter:(void (^ _Nonnull)(NSError * _Nonnull))reject { LocalNetworkPrivacy *local = [LocalNetworkPrivacy new]; [local checkAccessState:^(BOOL granted) { [RNPermissions flagAsRequested:[[self class]...

I recommend the opposite : perform a request in check (for consistency)

@nilaydigiwhiz https://jacobtomlinson.dev/posts/2022/dont-be-that-open-source-user-dont-be-me/ I do almost free, volunteer work on this library (and others) and have a full time job, that's why. Also, every time someone say things like "Why is...

@vitalyiegorov Not yet. ![FC04FED5-4F72-4651-AB62-6D5786A53B14](https://user-images.githubusercontent.com/1902323/189098553-a185d7fc-3b66-4603-939c-595affe051a2.jpeg) Sure, you can try and confirm if it works well.

I took a check and finally try the @grit96 solution. IMHO this is not enough (and I'm afraid it can't be better) The permission must be requested using the library...