Skip to content

Commit

Permalink
Set badge on main queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Vermeer, Edwin authored and Vermeer, Edwin committed Sep 18, 2017
1 parent 2940137 commit 17b4398
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/EVCloudKitDao.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,9 @@ open class EVCloudKitDao {
}
self.handleCallback(error as Error?, errorHandler: handleError, completionHandler: {
#if os(iOS)
UIApplication.shared.applicationIconBadgeNumber = count
OperationQueue.main.addOperation {
UIApplication.shared.applicationIconBadgeNumber = count
}
#elseif os(OSX)
//TODO: Set badge?
NSLog("How to set the badge on OSX?")
Expand Down

0 comments on commit 17b4398

Please sign in to comment.