Open Wenfengcheng opened 5 years ago
From the Apple Docs:
- (BOOL)application:(UIApplication )application openURL:(NSURL )url sourceApplication:(NSString*)sourceApplication annotation:(id)annotation: Asks the delegate to open a resource identified by URL
--> so, this one gets called when you open another app from your app, not when your app is opened by another app
- (BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions: Tells the delegate that the launch process is almost done and the app is almost ready to run.
--> if you already launched your app before, and it is currently only in the background, this method will not be called again
What you want is most likely:
- (void)applicationDidBecomeActive:(UIApplication )application or - (void)applicationWillEnterForeground:(UIApplication )application which are getting called when the app moves from the background to the foreground!
2、检查IDFA的步骤 (1)、打开终端cd到要检查的文件的根目录。
(2)、执行下列语句:grep -r advertisingIdentifier . (别少了最后那个点号)。
http://wiki.mob.com/idfa%E7%9A%84%E6%A3%80%E6%B5%8B%E5%92%8C%E9%80%9A%E8%BF%87%E5%AE%A1%E6%A0%B8-2/
Steps:
https://juejin.im/post/5a9521ae6fb9a0634a393f30 http://www.devzhang.com/14461743262337.html