jevonmao / jevonmao/PermissionsSwiftUI
[BUG] - JMNotificationPermissionManager does not work with iOS 15
- Dominant language
- Swift
- Stars
- 1.6k
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I was building my project with iOS 15 and the library won't build.
Starting from iOS 15, [`UIApplication.shared.registerForRemoteNotifications()`](https://github.com/jevonmao/PermissionsSwiftUI/blob/main/Sources/PermissionsSwiftUINotification/JMNotificationPermissionManager.swift#L65) cannot be used in extensions anymore and the error suggests to use a `ViewController` implementation instead.
**To Reproduce**
Steps to reproduce the behavior:
1. Install Xcode 13
2. Build the project
3. Observe the build process fail
**Expected behavior**
The framework should build
**Smartphone (please complete the following information):**
- OS: iOS 15
Contributor guide
Assessment
This issue has not been assessed yet.