Skip to content

Commit 04454e2

Browse files
committed
Push Notification Swift
Push notification using swift for iOS 8, 9 and 10 with demo entitlement for the created certificates and provisioning profile as per the documented sites.
0 parents commit 04454e2

File tree

13 files changed

+808
-0
lines changed

13 files changed

+808
-0
lines changed
Lines changed: 341 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,341 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
BDB03E951E3F12B8002D32EB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDB03E941E3F12B8002D32EB /* AppDelegate.swift */; };
11+
BDB03E971E3F12B8002D32EB /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDB03E961E3F12B8002D32EB /* ViewController.swift */; };
12+
BDB03E9A1E3F12B8002D32EB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BDB03E981E3F12B8002D32EB /* Main.storyboard */; };
13+
BDB03E9C1E3F12B8002D32EB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BDB03E9B1E3F12B8002D32EB /* Assets.xcassets */; };
14+
BDB03E9F1E3F12B8002D32EB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BDB03E9D1E3F12B8002D32EB /* LaunchScreen.storyboard */; };
15+
BDB03EA91E3F14EC002D32EB /* UserNotifications.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BDB03EA81E3F14EC002D32EB /* UserNotifications.framework */; };
16+
BDB03EAB1E3F14F3002D32EB /* NotificationCenter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BDB03EAA1E3F14F3002D32EB /* NotificationCenter.framework */; };
17+
/* End PBXBuildFile section */
18+
19+
/* Begin PBXFileReference section */
20+
BDB03E911E3F12B8002D32EB /* DemoPushNotification.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DemoPushNotification.app; sourceTree = BUILT_PRODUCTS_DIR; };
21+
BDB03E941E3F12B8002D32EB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
22+
BDB03E961E3F12B8002D32EB /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
23+
BDB03E991E3F12B8002D32EB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
24+
BDB03E9B1E3F12B8002D32EB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
25+
BDB03E9E1E3F12B8002D32EB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
26+
BDB03EA01E3F12B8002D32EB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
27+
BDB03EA71E3F1479002D32EB /* DemoPushNotification.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DemoPushNotification.entitlements; sourceTree = "<group>"; };
28+
BDB03EA81E3F14EC002D32EB /* UserNotifications.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotifications.framework; path = System/Library/Frameworks/UserNotifications.framework; sourceTree = SDKROOT; };
29+
BDB03EAA1E3F14F3002D32EB /* NotificationCenter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NotificationCenter.framework; path = System/Library/Frameworks/NotificationCenter.framework; sourceTree = SDKROOT; };
30+
/* End PBXFileReference section */
31+
32+
/* Begin PBXFrameworksBuildPhase section */
33+
BDB03E8E1E3F12B8002D32EB /* Frameworks */ = {
34+
isa = PBXFrameworksBuildPhase;
35+
buildActionMask = 2147483647;
36+
files = (
37+
BDB03EAB1E3F14F3002D32EB /* NotificationCenter.framework in Frameworks */,
38+
BDB03EA91E3F14EC002D32EB /* UserNotifications.framework in Frameworks */,
39+
);
40+
runOnlyForDeploymentPostprocessing = 0;
41+
};
42+
/* End PBXFrameworksBuildPhase section */
43+
44+
/* Begin PBXGroup section */
45+
BDB03E881E3F12B8002D32EB = {
46+
isa = PBXGroup;
47+
children = (
48+
BDB03E931E3F12B8002D32EB /* DemoPushNotification */,
49+
BDB03EA61E3F1383002D32EB /* Frameworks */,
50+
BDB03E921E3F12B8002D32EB /* Products */,
51+
);
52+
sourceTree = "<group>";
53+
};
54+
BDB03E921E3F12B8002D32EB /* Products */ = {
55+
isa = PBXGroup;
56+
children = (
57+
BDB03E911E3F12B8002D32EB /* DemoPushNotification.app */,
58+
);
59+
name = Products;
60+
sourceTree = "<group>";
61+
};
62+
BDB03E931E3F12B8002D32EB /* DemoPushNotification */ = {
63+
isa = PBXGroup;
64+
children = (
65+
BDB03EA71E3F1479002D32EB /* DemoPushNotification.entitlements */,
66+
BDB03E941E3F12B8002D32EB /* AppDelegate.swift */,
67+
BDB03E961E3F12B8002D32EB /* ViewController.swift */,
68+
BDB03E981E3F12B8002D32EB /* Main.storyboard */,
69+
BDB03E9B1E3F12B8002D32EB /* Assets.xcassets */,
70+
BDB03E9D1E3F12B8002D32EB /* LaunchScreen.storyboard */,
71+
BDB03EA01E3F12B8002D32EB /* Info.plist */,
72+
);
73+
path = DemoPushNotification;
74+
sourceTree = "<group>";
75+
};
76+
BDB03EA61E3F1383002D32EB /* Frameworks */ = {
77+
isa = PBXGroup;
78+
children = (
79+
BDB03EAA1E3F14F3002D32EB /* NotificationCenter.framework */,
80+
BDB03EA81E3F14EC002D32EB /* UserNotifications.framework */,
81+
);
82+
name = Frameworks;
83+
path = DemoPushNotification/Frameworks;
84+
sourceTree = "<group>";
85+
};
86+
/* End PBXGroup section */
87+
88+
/* Begin PBXNativeTarget section */
89+
BDB03E901E3F12B8002D32EB /* DemoPushNotification */ = {
90+
isa = PBXNativeTarget;
91+
buildConfigurationList = BDB03EA31E3F12B8002D32EB /* Build configuration list for PBXNativeTarget "DemoPushNotification" */;
92+
buildPhases = (
93+
BDB03E8D1E3F12B8002D32EB /* Sources */,
94+
BDB03E8E1E3F12B8002D32EB /* Frameworks */,
95+
BDB03E8F1E3F12B8002D32EB /* Resources */,
96+
);
97+
buildRules = (
98+
);
99+
dependencies = (
100+
);
101+
name = DemoPushNotification;
102+
productName = DemoPushNotification;
103+
productReference = BDB03E911E3F12B8002D32EB /* DemoPushNotification.app */;
104+
productType = "com.apple.product-type.application";
105+
};
106+
/* End PBXNativeTarget section */
107+
108+
/* Begin PBXProject section */
109+
BDB03E891E3F12B8002D32EB /* Project object */ = {
110+
isa = PBXProject;
111+
attributes = {
112+
LastSwiftUpdateCheck = 0820;
113+
LastUpgradeCheck = 0820;
114+
ORGANIZATIONNAME = "Easy Pay";
115+
TargetAttributes = {
116+
BDB03E901E3F12B8002D32EB = {
117+
CreatedOnToolsVersion = 8.2.1;
118+
DevelopmentTeam = 8N9YWC6Z6P;
119+
ProvisioningStyle = Manual;
120+
SystemCapabilities = {
121+
com.apple.Push = {
122+
enabled = 1;
123+
};
124+
};
125+
};
126+
};
127+
};
128+
buildConfigurationList = BDB03E8C1E3F12B8002D32EB /* Build configuration list for PBXProject "DemoPushNotification" */;
129+
compatibilityVersion = "Xcode 3.2";
130+
developmentRegion = English;
131+
hasScannedForEncodings = 0;
132+
knownRegions = (
133+
en,
134+
Base,
135+
);
136+
mainGroup = BDB03E881E3F12B8002D32EB;
137+
productRefGroup = BDB03E921E3F12B8002D32EB /* Products */;
138+
projectDirPath = "";
139+
projectRoot = "";
140+
targets = (
141+
BDB03E901E3F12B8002D32EB /* DemoPushNotification */,
142+
);
143+
};
144+
/* End PBXProject section */
145+
146+
/* Begin PBXResourcesBuildPhase section */
147+
BDB03E8F1E3F12B8002D32EB /* Resources */ = {
148+
isa = PBXResourcesBuildPhase;
149+
buildActionMask = 2147483647;
150+
files = (
151+
BDB03E9F1E3F12B8002D32EB /* LaunchScreen.storyboard in Resources */,
152+
BDB03E9C1E3F12B8002D32EB /* Assets.xcassets in Resources */,
153+
BDB03E9A1E3F12B8002D32EB /* Main.storyboard in Resources */,
154+
);
155+
runOnlyForDeploymentPostprocessing = 0;
156+
};
157+
/* End PBXResourcesBuildPhase section */
158+
159+
/* Begin PBXSourcesBuildPhase section */
160+
BDB03E8D1E3F12B8002D32EB /* Sources */ = {
161+
isa = PBXSourcesBuildPhase;
162+
buildActionMask = 2147483647;
163+
files = (
164+
BDB03E971E3F12B8002D32EB /* ViewController.swift in Sources */,
165+
BDB03E951E3F12B8002D32EB /* AppDelegate.swift in Sources */,
166+
);
167+
runOnlyForDeploymentPostprocessing = 0;
168+
};
169+
/* End PBXSourcesBuildPhase section */
170+
171+
/* Begin PBXVariantGroup section */
172+
BDB03E981E3F12B8002D32EB /* Main.storyboard */ = {
173+
isa = PBXVariantGroup;
174+
children = (
175+
BDB03E991E3F12B8002D32EB /* Base */,
176+
);
177+
name = Main.storyboard;
178+
sourceTree = "<group>";
179+
};
180+
BDB03E9D1E3F12B8002D32EB /* LaunchScreen.storyboard */ = {
181+
isa = PBXVariantGroup;
182+
children = (
183+
BDB03E9E1E3F12B8002D32EB /* Base */,
184+
);
185+
name = LaunchScreen.storyboard;
186+
sourceTree = "<group>";
187+
};
188+
/* End PBXVariantGroup section */
189+
190+
/* Begin XCBuildConfiguration section */
191+
BDB03EA11E3F12B8002D32EB /* Debug */ = {
192+
isa = XCBuildConfiguration;
193+
buildSettings = {
194+
ALWAYS_SEARCH_USER_PATHS = NO;
195+
CLANG_ANALYZER_NONNULL = YES;
196+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
197+
CLANG_CXX_LIBRARY = "libc++";
198+
CLANG_ENABLE_MODULES = YES;
199+
CLANG_ENABLE_OBJC_ARC = YES;
200+
CLANG_WARN_BOOL_CONVERSION = YES;
201+
CLANG_WARN_CONSTANT_CONVERSION = YES;
202+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
203+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
204+
CLANG_WARN_EMPTY_BODY = YES;
205+
CLANG_WARN_ENUM_CONVERSION = YES;
206+
CLANG_WARN_INFINITE_RECURSION = YES;
207+
CLANG_WARN_INT_CONVERSION = YES;
208+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
209+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
210+
CLANG_WARN_UNREACHABLE_CODE = YES;
211+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
212+
CODE_SIGN_IDENTITY = "iPhone Developer";
213+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
214+
COPY_PHASE_STRIP = NO;
215+
DEBUG_INFORMATION_FORMAT = dwarf;
216+
ENABLE_STRICT_OBJC_MSGSEND = YES;
217+
ENABLE_TESTABILITY = YES;
218+
GCC_C_LANGUAGE_STANDARD = gnu99;
219+
GCC_DYNAMIC_NO_PIC = NO;
220+
GCC_NO_COMMON_BLOCKS = YES;
221+
GCC_OPTIMIZATION_LEVEL = 0;
222+
GCC_PREPROCESSOR_DEFINITIONS = (
223+
"DEBUG=1",
224+
"$(inherited)",
225+
);
226+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
227+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
228+
GCC_WARN_UNDECLARED_SELECTOR = YES;
229+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
230+
GCC_WARN_UNUSED_FUNCTION = YES;
231+
GCC_WARN_UNUSED_VARIABLE = YES;
232+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
233+
MTL_ENABLE_DEBUG_INFO = YES;
234+
ONLY_ACTIVE_ARCH = YES;
235+
SDKROOT = iphoneos;
236+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
237+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
238+
TARGETED_DEVICE_FAMILY = "1,2";
239+
};
240+
name = Debug;
241+
};
242+
BDB03EA21E3F12B8002D32EB /* Release */ = {
243+
isa = XCBuildConfiguration;
244+
buildSettings = {
245+
ALWAYS_SEARCH_USER_PATHS = NO;
246+
CLANG_ANALYZER_NONNULL = YES;
247+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
248+
CLANG_CXX_LIBRARY = "libc++";
249+
CLANG_ENABLE_MODULES = YES;
250+
CLANG_ENABLE_OBJC_ARC = YES;
251+
CLANG_WARN_BOOL_CONVERSION = YES;
252+
CLANG_WARN_CONSTANT_CONVERSION = YES;
253+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
254+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
255+
CLANG_WARN_EMPTY_BODY = YES;
256+
CLANG_WARN_ENUM_CONVERSION = YES;
257+
CLANG_WARN_INFINITE_RECURSION = YES;
258+
CLANG_WARN_INT_CONVERSION = YES;
259+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
260+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
261+
CLANG_WARN_UNREACHABLE_CODE = YES;
262+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
263+
CODE_SIGN_IDENTITY = "iPhone Developer";
264+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
265+
COPY_PHASE_STRIP = NO;
266+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
267+
ENABLE_NS_ASSERTIONS = NO;
268+
ENABLE_STRICT_OBJC_MSGSEND = YES;
269+
GCC_C_LANGUAGE_STANDARD = gnu99;
270+
GCC_NO_COMMON_BLOCKS = YES;
271+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
272+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
273+
GCC_WARN_UNDECLARED_SELECTOR = YES;
274+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
275+
GCC_WARN_UNUSED_FUNCTION = YES;
276+
GCC_WARN_UNUSED_VARIABLE = YES;
277+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
278+
MTL_ENABLE_DEBUG_INFO = NO;
279+
SDKROOT = iphoneos;
280+
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
281+
TARGETED_DEVICE_FAMILY = "1,2";
282+
VALIDATE_PRODUCT = YES;
283+
};
284+
name = Release;
285+
};
286+
BDB03EA41E3F12B8002D32EB /* Debug */ = {
287+
isa = XCBuildConfiguration;
288+
buildSettings = {
289+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
290+
CODE_SIGN_ENTITLEMENTS = DemoPushNotification/DemoPushNotification.entitlements;
291+
DEVELOPMENT_TEAM = 8N9YWC6Z6P;
292+
INFOPLIST_FILE = DemoPushNotification/Info.plist;
293+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
294+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
295+
PRODUCT_BUNDLE_IDENTIFIER = com.easypay.DemoPushNotification;
296+
PRODUCT_NAME = "$(TARGET_NAME)";
297+
PROVISIONING_PROFILE_SPECIFIER = DemoPushNotification;
298+
SWIFT_VERSION = 3.0;
299+
};
300+
name = Debug;
301+
};
302+
BDB03EA51E3F12B8002D32EB /* Release */ = {
303+
isa = XCBuildConfiguration;
304+
buildSettings = {
305+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
306+
CODE_SIGN_ENTITLEMENTS = DemoPushNotification/DemoPushNotification.entitlements;
307+
DEVELOPMENT_TEAM = 8N9YWC6Z6P;
308+
INFOPLIST_FILE = DemoPushNotification/Info.plist;
309+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
310+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
311+
PRODUCT_BUNDLE_IDENTIFIER = com.easypay.DemoPushNotification;
312+
PRODUCT_NAME = "$(TARGET_NAME)";
313+
PROVISIONING_PROFILE_SPECIFIER = DemoPushNotification;
314+
SWIFT_VERSION = 3.0;
315+
};
316+
name = Release;
317+
};
318+
/* End XCBuildConfiguration section */
319+
320+
/* Begin XCConfigurationList section */
321+
BDB03E8C1E3F12B8002D32EB /* Build configuration list for PBXProject "DemoPushNotification" */ = {
322+
isa = XCConfigurationList;
323+
buildConfigurations = (
324+
BDB03EA11E3F12B8002D32EB /* Debug */,
325+
BDB03EA21E3F12B8002D32EB /* Release */,
326+
);
327+
defaultConfigurationIsVisible = 0;
328+
defaultConfigurationName = Release;
329+
};
330+
BDB03EA31E3F12B8002D32EB /* Build configuration list for PBXNativeTarget "DemoPushNotification" */ = {
331+
isa = XCConfigurationList;
332+
buildConfigurations = (
333+
BDB03EA41E3F12B8002D32EB /* Debug */,
334+
BDB03EA51E3F12B8002D32EB /* Release */,
335+
);
336+
defaultConfigurationIsVisible = 0;
337+
};
338+
/* End XCConfigurationList section */
339+
};
340+
rootObject = BDB03E891E3F12B8002D32EB /* Project object */;
341+
}

DemoPushNotification.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
type = "1"
4+
version = "2.0">
5+
</Bucket>

0 commit comments

Comments
 (0)