PermissionsSwiftUI icon indicating copy to clipboard operation
PermissionsSwiftUI copied to clipboard

[BUG] - JMNotificationPermissionManager does not work with iOS 15

Open cipolleschi opened this issue 4 years ago • 7 comments

Describe the bug I was building my project with iOS 15 and the library won't build. Starting from iOS 15, UIApplication.shared.registerForRemoteNotifications() 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

cipolleschi avatar Sep 01 '21 11:09 cipolleschi

@cipolleschi I will get this fixed ASAP.

jevonmao avatar Sep 01 '21 22:09 jevonmao

Follow up, I have attempted to reproduce this bug on Xcode 13, standard SwiftUI project for iOS, targeting iOS 15 and building for iOS 15 simulator. And I am not able to reproduce the error you are talking about. @cipolleschi

jevonmao avatar Sep 03 '21 05:09 jevonmao

Thanks for being that prompt. We are seeing the error in a project with a WatchOS app associated. I'll try to create a sample project and to attach it here as reference!

cipolleschi avatar Sep 03 '21 07:09 cipolleschi

Hey, this is the example project with the error. Is an Empty WatchOS + iOS project in which I just added the PermissionSwiftUI Swift Package.

Let me know if I can help in any way! TestPermissionPackage.zip

cipolleschi avatar Sep 03 '21 12:09 cipolleschi

A little bit busy for the past week, I will try to get to this today.

jevonmao avatar Sep 08 '21 18:09 jevonmao

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 09 '21 02:10 github-actions[bot]

Will verify all WatchOS(also possibly other less attended to platforms like tvOS) PermissionsSwiftUI APIs, against newest iOS 17

jevonmao avatar Aug 07 '23 17:08 jevonmao