-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[firebase_messaging]Added modern iOS notification types #1009
[firebase_messaging]Added modern iOS notification types #1009
Conversation
…llback for versions < iOS 10
basic dictionary for both: UIUserNotificationType & UNAuthorizationOptions
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
CLAs look good, thanks! |
The tests fail since they are done with Xcode9 and iOS11. Is there a chance to update the test hosts? |
It's almost a year, the methods are deprecated, messaging needs this feature |
flutterfire has been re-homed to https://github.com/FirebaseExtended/FlutterFire |
New authorization options (formerly known as
UIUserNotificationType
) have been provided by apple with iOS10 and iOS12:provisional
(aka: silent notification),criticalAlert
,notificationSetting
andcarPlay
This pull request intends to be backwards compatible until iOS8. Registering of any
UIUserNotificationType
orUNAuthorizationOptions
is possible, if the operating system supports it.A basic implementation of
UNUserNotificationCenter
for iOS10+ was necessary to request permission for these new types.