Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast track camera & microphone Permissions #130

Conversation

Deco354
Copy link
Collaborator

@Deco354 Deco354 commented Apr 5, 2022

JIRA: ICORE-4812
P2: https://wp.me/pbzQyC-248

What it does

All commits made on or before 5th April have been reviewed as part of this PR. You can filter this PR for April 6th commits onwards (All Tests and code removals) or review the whole thing.

Before After
Simulator Screen Recording - iPhone 8 - 2022-04-05 at 18 11 13 Simulator Screen Recording - iPhone 8 - 2022-04-05 at 18 02 45

This changes how we ask the user for camera and microphone permissions. Apple recently rejected our review as they didn't want an intermediary screen where users can choose whether to display apples official permission requests.

How to test

Use a real device, resetting the app permission settings on simulator is a bit tricky.

Unknown permissions

  • Goto Settings > General > Reset > Reset Location & Privacy
  • Open photo screen and two alerts should appear

Accepted permissions

  • Goto Settings > General > Reset > Reset Location & Privacy
  • Open photo screen and accept both permission alerts
  • Result: Camera and mic should be fully accessible
  • Go back and open screen
    Result: Camera and mic should be fully accessible

Denied permissions -

  • Goto Settings > General > Reset > Reset Location & Privacy
  • Open photo screen
  • Deny Camera and Mic access
  • Result: Settings redirect screen should appear and no access to camera is granted
  • Go back and reopen screen
  • Result: No permission alerts should appear. Settings redirect screen should appear and no access to camera is granted
  • Kill app and open screen
  • Result: Settings redirect screen should appear and no access to camera is granted
  • repeat these steps this time only selecting one of the camera or mic permissions to reject

@Deco354 Deco354 marked this pull request as draft April 5, 2022 11:19
Our coding standards are to use the value but we need to use the
existing Orangina translations here.
@Deco354 Deco354 marked this pull request as ready for review April 7, 2022 12:36
@Deco354 Deco354 changed the base branch from main to feature/new-permission-screen April 7, 2022 12:36
Utilize helper functions and remove redundant accessRequests.
Access is now requested upon view appearing.
…ICORE-4182-fast-track-camera-and-microphone-permissions

# Conflicts:
#	KanvasExample/KanvasExample.xcodeproj/project.pbxproj
#	KanvasExample/KanvasExampleTests/Camera/CameraPermissionsTests.swift
@Deco354 Deco354 changed the base branch from main to declan/ICORE-4872-update-snapshot-library April 21, 2022 13:56
This functionality is now included within v8.0.0
Replace 10% overall tolerance with 2% perPixel Tolerance
Base automatically changed from declan/ICORE-4872-update-snapshot-library to main April 22, 2022 06:46
@Deco354 Deco354 marked this pull request as draft April 22, 2022 07:37
@Deco354
Copy link
Collaborator Author

Deco354 commented Apr 22, 2022

I've squashed some of the commits and delivered this in to two separate PRs to represent what was and wasn't reviewed within the Orangina PR where we introduced this feature.

@Deco354 Deco354 closed this Apr 22, 2022
@Deco354
Copy link
Collaborator Author

Deco354 commented Apr 22, 2022

Do not delete this branch, we're currently pointing Orangina at it!

@Deco354
Copy link
Collaborator Author

Deco354 commented Apr 22, 2022

In fact I'll reopen this just in case it gets deleted on account of being closed.

@Deco354 Deco354 reopened this Apr 22, 2022
@Deco354
Copy link
Collaborator Author

Deco354 commented Apr 25, 2022

Disregard my last comment we're pointing to a different branch. It's all merged so I'll close this and point orangina to the latest update.

@Deco354 Deco354 closed this Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant