|
|
@ -38,7 +38,9 @@ public final class NotifyPNServerJob : NSObject, Job, NSCoding { // NSObject/NSC
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public func execute() -> Promise<Void> {
|
|
|
|
public func execute() -> Promise<Void> {
|
|
|
|
JobQueue.currentlyExecutingJobs.insert(id!)
|
|
|
|
if let id = id {
|
|
|
|
|
|
|
|
JobQueue.currentlyExecutingJobs.insert(id)
|
|
|
|
|
|
|
|
}
|
|
|
|
let server = PushNotificationAPI.server
|
|
|
|
let server = PushNotificationAPI.server
|
|
|
|
let parameters = [ "data" : message.data.description, "send_to" : message.recipient ]
|
|
|
|
let parameters = [ "data" : message.data.description, "send_to" : message.recipient ]
|
|
|
|
let url = URL(string: "\(server)/notify")!
|
|
|
|
let url = URL(string: "\(server)/notify")!
|
|
|
|