func application( application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData ) {
	let syncClient = AWSCognito.defaultCognito()
	syncClient.registerDevice(deviceToken).continueWithBlock {
		(task: AWSTask!) -> AnyObject! in
		if (task.error != nil) {
			print("Unable to register device: " + task.error!.localizedDescription)
		} else {
			print("Successfully registered device with id: \(task.result)")
		}
	return nil
	}
}