You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! 👋 I mentioned this over at #14 (comment), but I figured it deserves its own issue.
This package doesn't support iOS versions before 10. This has been true at least as far back as #66, when Apple's UNUserNotificationCenter started being used (e.g., here) without using API_AVAILABLE(ios(10.0)) as has been done in a few places (I think the doc for that is this one?). At Apple's doc for UNUserNotificationCenter, you can see on the right-hand side that it's available in iOS 10+, and not before.
Perhaps the most urgent thing this suggests is that it's quite important to ask what iOS version a given GitHub issue is observed on—it might be a subtle breakage that won't happen on newer iOS versions. That said, Apple indicates that less than 2% of users are using a version before 12, and doesn't even break it down to show 9. But this is why I'm suggesting to make official the drop of iOS 9, rather than scrambling to support it again. iOS 14 is set to be released very soon (tomorrow?), which is likely to drive usage of iOS 9 down even further.
I think a great place to start syncing the code back into a good state is to correct the platform designation in the Podspec, so that people get a prominent warning if they try to use this package in an app that aims to support iOS 9. (See CocoaPods's doc.)
It would be good to mention the supported iOS version range in the README.
Where we haven't yet moved to iOS 10+ versions of things (e.g., the implementation of presentLocalNotification uses this deprecated method), it would be good to do so. I suspect "deprecated" means still available, but with plans for its removal. (I might be wrong, and in fact it was removed in 10, or in a later version—if true, that could be a cause of presentLocalNotification doesn't work #105.)
The work of Handling local notification event for IOS 10+ #104 can be finished, by removing code it left untouched, for pre-iOS 10 backwards compatibility. I think didReceiveLocalNotification is a good search term for this.
@chrisbobbe Thanks for raising the issue!
I'll be working towards addressing this issue.
I've made some new methods to deprecate older methods that has been deprecated since iOS10
Uh oh!
There was an error while loading. Please reload this page.
Hi! 👋 I mentioned this over at #14 (comment), but I figured it deserves its own issue.
This package doesn't support iOS versions before 10. This has been true at least as far back as #66, when Apple's
UNUserNotificationCenter
started being used (e.g., here) without usingAPI_AVAILABLE(ios(10.0))
as has been done in a few places (I think the doc for that is this one?). At Apple's doc forUNUserNotificationCenter
, you can see on the right-hand side that it's available in iOS 10+, and not before.Perhaps the most urgent thing this suggests is that it's quite important to ask what iOS version a given GitHub issue is observed on—it might be a subtle breakage that won't happen on newer iOS versions. That said, Apple indicates that less than 2% of users are using a version before 12, and doesn't even break it down to show 9. But this is why I'm suggesting to make official the drop of iOS 9, rather than scrambling to support it again. iOS 14 is set to be released very soon (tomorrow?), which is likely to drive usage of iOS 9 down even further.
platform
designation in the Podspec, so that people get a prominent warning if they try to use this package in an app that aims to support iOS 9. (See CocoaPods's doc.)presentLocalNotification
uses this deprecated method), it would be good to do so. I suspect "deprecated" means still available, but with plans for its removal. (I might be wrong, and in fact it was removed in 10, or in a later version—if true, that could be a cause of presentLocalNotification doesn't work #105.)didReceiveLocalNotification
is a good search term for this.didRegisterUserNotificationSettings
inAppDelegate.m
. (In fact, I don't think that was left in for backwards compatibility—the interesting code it used to invoke was removed in that PR, so I think it was just left in by accident.API_AVAILABLE(ios(10.0))
can be swept away; they won't be needed.The text was updated successfully, but these errors were encountered: