jevonmao / jevonmao/PermissionsSwiftUI

[BUG] - JMNotificationPermissionManager does not work with iOS 15

Open
#97 7 comments 2 reactions 0 assignees View on GitHub
help wanted possible bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.