add ios
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#import "AppDelegate.h"
|
||||
#import "GeneratedPluginRegistrant.h"
|
||||
@import Firebase;
|
||||
|
||||
@implementation AppDelegate
|
||||
|
||||
@@ -7,7 +8,16 @@
|
||||
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
[GeneratedPluginRegistrant registerWithRegistry:self];
|
||||
// Override point for customization after application launch.
|
||||
if (@available(iOS 10.0, *)) {
|
||||
[UNUserNotificationCenter currentNotificationCenter].delegate = (id<UNUserNotificationCenterDelegate>) self;
|
||||
}
|
||||
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
||||
}
|
||||
|
||||
//- (void)application:(UIApplication *)application
|
||||
// didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
|
||||
// // Pass device token to auth.
|
||||
// [[FIRAuth auth] setAPNSToken:deviceToken type:FIRAuthAPNSTokenTypeUnknown];
|
||||
// // Further handling of the device token if needed by the app.
|
||||
//}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user