Last active
March 19, 2017 16:22
-
-
Save insidegui/84c92632f108899c84e1de8d56df9654 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
container.publicCloudDatabase.save(subscription) { [weak self] savedSubscription, error in | |
guard let savedSubscription = savedSubscription, error == nil else { | |
// awesome error handling | |
return | |
} | |
// subscription saved successfully | |
// (probably want to save the subscriptionID in user defaults or something) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment