Skip to content

Commit d51fe2f

Browse files
stevetreaseSteve Trease
authored andcommitted
Added device token to token registration NSURL call.
1 parent 9263002 commit d51fe2f

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

Swift Push 4/AppDelegate.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
8686
bodyData += "&device=\(UIDevice.currentDevice().name)"
8787
bodyData += "&mode=\(mode!)"
8888
bodyData += "&version=\(versionNumber!)"
89+
bodyData += "&type=iOS"
8990
request.HTTPBody = bodyData.dataUsingEncoding(NSUTF8StringEncoding)
9091

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

0 commit comments

Comments
 (0)