my app is based on UILocalnotification actions. it has 2 action buttons, one of then use a method that get data from Core Date, modify and save it. Also, i use SSKeychain to store user's token. And the problem is with that, if the app is closed and calls a notification action this method is called on AppDelegate
func application(application: UIApplication, handleActionWithIdentifier identifier: String?, forLocalNotification notification: UILocalNotification)
to handle notification action, and in this method i do the stuff with Core Data (get, modify and save), it's working fine. But when open the app after that, the SSKeychain don't find any user's token, it only happens on the first time, if i close the app and open it again, works fine.
UPDATE the problem is not only with SSKeychain, i changed the framework and now happen the same thing with Core Data. get, modify and save with notification action; open the app and nothing of that action was saved; close the app and open again, and the notification action changes appear.