FIRAppDelegate.m 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Copyright 2017 Google
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #import "FIRAppDelegate.h"
  15. #import <FirebaseCore/FIRApp.h>
  16. @implementation FIRAppDelegate
  17. - (BOOL)application:(UIApplication *)application
  18. didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  19. return YES;
  20. }
  21. - (void)applicationWillResignActive:(UIApplication *)application {
  22. // Sent when the application is about to move from active to inactive state. This can occur for
  23. // certain types of temporary interruptions (such as an incoming phone call or SMS message) or
  24. // when the user quits the application and it begins the transition to the background state.
  25. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame
  26. // rates. Games should use this method to pause the game.
  27. }
  28. - (void)applicationDidEnterBackground:(UIApplication *)application {
  29. // Use this method to release shared resources, save user data, invalidate timers, and store
  30. // enough application state information to restore your application to its current state in case
  31. // it is terminated later.
  32. // If your application supports background execution, this method is called instead of
  33. // applicationWillTerminate: when the user quits.
  34. }
  35. - (void)applicationWillEnterForeground:(UIApplication *)application {
  36. // Called as part of the transition from the background to the inactive state; here you can undo
  37. // many of the changes made on entering the background.
  38. }
  39. - (void)applicationDidBecomeActive:(UIApplication *)application {
  40. // Restart any tasks that were paused (or not yet started) while the application was inactive. If
  41. // the application was previously in the background, optionally refresh the user interface.
  42. }
  43. - (void)applicationWillTerminate:(UIApplication *)application {
  44. // Called when the application is about to terminate. Save data if appropriate. See also
  45. // applicationDidEnterBackground:.
  46. }
  47. @end