在我的项目演示中我调用函数:[SDKManager handleApplication:application didFinishLaunchingWithOptions:launchOptions]; for我的SDK中的init [FIRApp配置]
(BOOL)应用程序:(UIApplication *)应用程序didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[FIRApp configure];
// Override point for customization after application launch.
//[SDKManager defaultManager].isSandbox = true;
[SDKManager handleApplication:application didFinishLaunchingWithOptions:launchOptions];
在我的SDK中创建此功能:
+ (void)handleApplication:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[SDKManager defaultManager] handleApplication:application didFinishLaunchingWithOptions:launchOptions];
[VTCSDKAppDelegate loadSDKAppDelegate];
[[SDKManager defaultManager] initSDK];
}
- (void)handleApplication:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// hide the status bar
[[UIApplication sharedApplication] setStatusBarHidden:YES];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleApplicationWillEnterBackground:)
name:UIApplicationWillResignActiveNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleApplicationWillEnterForeground:)
name:UIApplicationWillEnterForegroundNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleApplicationWillTerminate:) name:UIApplicationWillTerminateNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleApplicationDidBecomeActive:) name:UIApplicationDidBecomeActiveNotification
object:nil];
// Facebook
[[FBSDKApplicationDelegate sharedInstance] application:application
didFinishLaunchingWithOptions:launchOptions];
//FireBase
[FIRApp configure];
}
但是 但是没有检查控制台FireBase上的数据