diff --git a/AVOS/AVOSCloud/Push/AVInstallation.m b/AVOS/AVOSCloud/Push/AVInstallation.m index 6bf59b816..4030a5ee3 100644 --- a/AVOS/AVOSCloud/Push/AVInstallation.m +++ b/AVOS/AVOSCloud/Push/AVInstallation.m @@ -169,6 +169,12 @@ - (void)postSave NSMutableDictionary *data = [self postData]; [data removeObjectForKey:@"__type"]; [data removeObjectForKey:@"className"]; + if (self.deviceToken) { + data[keyPath(self, deviceToken)] = self.deviceToken; + } + if (self.apnsTeamId) { + data[keyPath(self, apnsTeamId)] = self.apnsTeamId; + } [AVPersistenceUtils saveJSON:data toPath:[AVPersistenceUtils currentInstallationArchivePath]]; } } diff --git a/AVOS/AVOSCloud/UserAgent.h b/AVOS/AVOSCloud/UserAgent.h index 1a8b973ef..f16c171ec 100644 --- a/AVOS/AVOSCloud/UserAgent.h +++ b/AVOS/AVOSCloud/UserAgent.h @@ -1 +1 @@ -#define SDK_VERSION @"12.0.3" +#define SDK_VERSION @"12.0.4" diff --git a/AVOSCloud.podspec b/AVOSCloud.podspec index 207484983..e65795a02 100644 --- a/AVOSCloud.podspec +++ b/AVOSCloud.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AVOSCloud' - s.version = '12.0.3' + s.version = '12.0.4' s.homepage = 'https://leancloud.cn/' s.summary = 'LeanCloud Objective-C SDK' s.authors = 'LeanCloud' diff --git a/AVOSCloudIM.podspec b/AVOSCloudIM.podspec index 1bf472731..d30f20117 100644 --- a/AVOSCloudIM.podspec +++ b/AVOSCloudIM.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AVOSCloudIM' - s.version = '12.0.3' + s.version = '12.0.4' s.homepage = 'https://leancloud.cn/' s.summary = 'LeanCloud IM Objective-C SDK' s.authors = 'LeanCloud' diff --git a/AVOSCloudLiveQuery.podspec b/AVOSCloudLiveQuery.podspec index 46af48146..4e62b67d2 100644 --- a/AVOSCloudLiveQuery.podspec +++ b/AVOSCloudLiveQuery.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AVOSCloudLiveQuery' - s.version = '12.0.3' + s.version = '12.0.4' s.homepage = 'https://leancloud.cn/' s.summary = 'LeanCloud LiveQuery Objective-C SDK' s.authors = 'LeanCloud'