add jpush event cache

This commit is contained in:
huangminlinux
2017-10-23 17:11:18 +08:00
parent 66932a8bc8
commit 3129165d3f
3 changed files with 26 additions and 1 deletions
+4
View File
@@ -38,6 +38,10 @@
NSDictionary *_launchOptions;
-(void)applicationDidLaunch:(NSNotification *)notification{
if (!_jpushEventCache) {
_jpushEventCache = @{}.mutableCopy;
}
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(jpushSDKDidLoginNotification) name:kJPFNetworkDidLoginNotification object:nil];
if (notification) {