Skip to content

Commit 02a2251

Browse files
committed
Added display of device token to device startup.
1 parent 3880c14 commit 02a2251

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

Swift Push/AppDelegate.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
8080
NSUserDefaults.standardUserDefaults().setObject(deviceToken.description as String, forKey:"deviceToken")
8181
NSUserDefaults.standardUserDefaults().synchronize()
8282

83+
newRecord("Device token is \(deviceToken.description)", alert: false, messageID: 0)
84+
8385
let receipt = NSBundle.mainBundle().appStoreReceiptURL?.lastPathComponent
8486
let mode = receipt
8587
let versionNumber: AnyObject? = NSBundle.mainBundle().infoDictionary?["CFBundleVersion"]

Swift Push/Base.lproj/Main.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9531" systemVersion="15E33e" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="XCN-vs-9xr">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9532" systemVersion="15E56a" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="XCN-vs-9xr">
33
<dependencies>
44
<deployment identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9529"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
66
</dependencies>
77
<scenes>
88
<!--Swift Push-->

Swift Push/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>405</string>
22+
<string>407</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UIBackgroundModes</key>

Swift Push/Settings.bundle/Root.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<array>
77
<dict>
88
<key>DefaultValue</key>
9-
<integer>405</integer>
9+
<integer>407</integer>
1010
<key>Key</key>
1111
<string>maximumRecords</string>
1212
<key>MaximumValue</key>

0 commit comments

Comments
 (0)