Skip to content

Commit 737db05

Browse files
committed
Revised battery level upload to upload unformatted value.
1 parent 9f653e4 commit 737db05

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

Swift Push 4/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
152152
request.HTTPMethod = "POST"
153153
var bodyData = "&device=\(UIDevice.currentDevice().name)"
154154
bodyData += "&batterystate=" + chargeStatus
155-
bodyData += "&batterylevel=" + batteryLevel!
155+
bodyData += "&batterylevel=\(UIDevice.currentDevice().batteryLevel)"
156156
request.HTTPBody = bodyData.dataUsingEncoding(NSUTF8StringEncoding)
157157

158158
let task = NSURLSession.sharedSession().dataTaskWithRequest(request) {

Swift Push 4/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>534</string>
22+
<string>535</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UIBackgroundModes</key>

Swift Push 4/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>534</string>
9+
<string>535</string>
1010
<key>Key</key>
1111
<string>CurrentBuildNumber</string>
1212
<key>Title</key>

0 commit comments

Comments
 (0)