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

[expo-notifications][expo-permissions] Move notification permission requesters to notifications package #8486

Merged
merged 9 commits into from May 27, 2020

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

490 changes: 253 additions & 237 deletions apps/bare-expo/ios/Pods/EXNotifications.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

165 changes: 61 additions & 104 deletions apps/bare-expo/ios/Pods/EXPermissions.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions docs/pages/versions/unversioned/sdk/permissions.md
Expand Up @@ -24,8 +24,8 @@ The following table shows you which permissions correspond to which packages.

| Permission type | Packages |
| --------------------------- | ----------------------------------------- |
| `NOTIFICATIONS` | `expo-permissions` |
| `USER_FACING_NOTIFICATIONS` | `expo-permissions` |
| `NOTIFICATIONS` | `expo-notifications` |
| `USER_FACING_NOTIFICATIONS` | `expo-notifications` |
| `LOCATION` | `expo-location` |
| `CAMERA` | `expo-camera`, `expo-barcode-scanner` |
| `AUDIO_RECORDING` | `expo-av` |
Expand Down
Expand Up @@ -70,7 +70,10 @@ - (void)askForPermissionUsingRequesterClass:(Class)requesterClass
// ask for permission. If granted then save it as scope permission
void (^customOnResults)(NSDictionary *) = ^(NSDictionary *permission){
UM_ENSURE_STRONGIFY(self)
[self.permissionsService savePermission:permission ofType:permissionType forExperience:self.experienceId];
// if permission should be scoped save it
if ([self shouldVerifyScopedPermission:permissionType]) {
[self.permissionsService savePermission:permission ofType:permissionType forExperience:self.experienceId];
}
resolve(permission);
};

Expand Down
8 changes: 4 additions & 4 deletions ios/Pods/.project_cache/installation_cache.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.