From e8462b2463e374fd5a7db50b02f42f63519af28f Mon Sep 17 00:00:00 2001 From: Alan Francis Date: Fri, 7 Jul 2023 11:41:17 +0100 Subject: [PATCH] Part 7: Background Modes --- JustOneThing.xcodeproj/project.pbxproj | 8 ++++++++ JustOneThing/Info.plist | 10 ++++++++++ JustOneThingWatch/Info.plist | 12 ++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 JustOneThing/Info.plist create mode 100644 JustOneThingWatch/Info.plist diff --git a/JustOneThing.xcodeproj/project.pbxproj b/JustOneThing.xcodeproj/project.pbxproj index 6fb3f3b..aec6168 100644 --- a/JustOneThing.xcodeproj/project.pbxproj +++ b/JustOneThing.xcodeproj/project.pbxproj @@ -124,6 +124,8 @@ 5407E5062A35B96E00EF00B8 /* JustOneThingWatch.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = JustOneThingWatch.entitlements; sourceTree = ""; }; 5416C7372A56A867002196EE /* InterfaceExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InterfaceExtensions.swift; sourceTree = ""; }; 5431ED6D2A2A77C900515680 /* JustOneThingWatch.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JustOneThingWatch.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 5432A6032A582D5D00FE2351 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 5432A6042A582D6D00FE2351 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 547201942A461554005B2FCC /* PhoneWidget.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = PhoneWidget.entitlements; sourceTree = ""; }; 547201952A461558005B2FCC /* WatchWidget.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = WatchWidget.entitlements; sourceTree = ""; }; 548390372A2A773900BF5624 /* JustOneThing.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JustOneThing.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -206,6 +208,7 @@ 5431ED6E2A2A77C900515680 /* JustOneThingWatch */ = { isa = PBXGroup; children = ( + 5432A6042A582D6D00FE2351 /* Info.plist */, 5407E5062A35B96E00EF00B8 /* JustOneThingWatch.entitlements */, ); path = JustOneThingWatch; @@ -258,6 +261,7 @@ 548390392A2A773900BF5624 /* JustOneThing */ = { isa = PBXGroup; children = ( + 5432A6032A582D5D00FE2351 /* Info.plist */, 548390402A2A773A00BF5624 /* JustOneThing.entitlements */, ); path = JustOneThing; @@ -591,6 +595,7 @@ DEVELOPMENT_TEAM = 37UC5MW6PT; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = JustOneThingWatch/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = JustOneThingWatch; INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; INFOPLIST_KEY_WKCompanionAppBundleIdentifier = com.alancfrancis.apps.JustOneThing; @@ -623,6 +628,7 @@ DEVELOPMENT_TEAM = 37UC5MW6PT; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = JustOneThingWatch/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = JustOneThingWatch; INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; INFOPLIST_KEY_WKCompanionAppBundleIdentifier = com.alancfrancis.apps.JustOneThing; @@ -766,6 +772,7 @@ ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = JustOneThing/Info.plist; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; @@ -807,6 +814,7 @@ ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = JustOneThing/Info.plist; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; diff --git a/JustOneThing/Info.plist b/JustOneThing/Info.plist new file mode 100644 index 0000000..ca9a074 --- /dev/null +++ b/JustOneThing/Info.plist @@ -0,0 +1,10 @@ + + + + + UIBackgroundModes + + remote-notification + + + diff --git a/JustOneThingWatch/Info.plist b/JustOneThingWatch/Info.plist new file mode 100644 index 0000000..c35d11b --- /dev/null +++ b/JustOneThingWatch/Info.plist @@ -0,0 +1,12 @@ + + + + + UIBackgroundModes + + remote-notification + + WKBackgroundModes + + +