Skip to content

Commit bb38834

Browse files
committed
Send device friendly name to web service along with push token registration.
1 parent 3b27712 commit bb38834

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

Swift Push 3/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
6868
var request = NSMutableURLRequest(URL: NSURL(string: "https://www.trease.eu/ibeacon/")!)
6969
var session = NSURLSession.sharedSession()
7070
request.HTTPMethod = "POST"
71-
var bodyData = "token=" + deviceToken.description
71+
var bodyData = "token=" + deviceToken.description + "&device=" + UIDevice.currentDevice().name
7272
request.HTTPBody = bodyData.dataUsingEncoding(NSUTF8StringEncoding)
7373
var connection = NSURLConnection(request: request, delegate: self, startImmediately: false)
7474
connection?.start()

Swift Push 3/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>153</string>
22+
<string>155</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UIBackgroundModes</key>

Swift Push 3/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-
<string>153</string>
9+
<string>155</string>
1010
<key>Key</key>
1111
<string>CurrentBuildNumber</string>
1212
<key>Title</key>

0 commit comments

Comments
 (0)