Search code examples
iphoneiosnotificationsitunesfile-sharing

Is there a way to get notified when the user drags a file into iTunes File Sharing and Sync is complete?


When I plug in the iPhone to iTunes and drag a file into the File Sharing section of my app, the app on the screen goes away for a moment and then comes back. It seems that none of the app delegate methods are triggered at this time, not even something like "went to background, went to foreground".

As soon as my app comes back after a sync where the user added or removed files, I want to update the screen.

Maybe there is a notification beeing sent?


Solution

  • - (void)applicationWillResignActive:(UIApplication *)application is called when the sync starts and - (void)applicationDidBecomeActive:(UIApplication *)application after the sync is complete