Background fetchとは アプリを起動していなくても、OSの判断で適切だと思われるタイミングで、任意の処理をバックグランドで実行することができます。 手順1 Background fetchの有効化 Capabilities → Background Modes → Background fetchをオンにします。 手順2 任意の処理を実行する間隔の指定 AppDelegate.swiftのdidFinishLaunchingWithOptionsに application.setMinimumBackgroundFetchInterval(UIApplicationBackgroundFetchIntervalMinimum) を実装する。 ※ UIApplicationBackgroundFetchIntervalMinimumとしてもOSの判断で処理が呼ばれるため、常に呼