diff --git a/plugin.xml b/plugin.xml
index 83ac96d..917adde 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -37,8 +37,8 @@
-
-
+
+
diff --git a/src/ios/Plugins/JPushPlugin.m b/src/ios/Plugins/JPushPlugin.m
index 9c15fc6..9641280 100644
--- a/src/ios/Plugins/JPushPlugin.m
+++ b/src/ios/Plugins/JPushPlugin.m
@@ -91,7 +91,9 @@
}
+(void)fireDocumentEvent:(NSString*)eventName jsString:(NSString*)jsString{
- [SharedJPushPlugin.commandDelegate evalJs:[NSString stringWithFormat:@"cordova.fireDocumentEvent('jpush.%@',%@)", eventName, jsString]];
+ dispatch_async(dispatch_get_main_queue(), ^{
+ [SharedJPushPlugin.commandDelegate evalJs:[NSString stringWithFormat:@"cordova.fireDocumentEvent('jpush.%@',%@)", eventName, jsString]];
+ });
}
-(void)setTagsWithAlias:(CDVInvokedUrlCommand*)command{
diff --git a/src/ios/lib/JPUSHService.h b/src/ios/lib/JPUSHService.h
index 13cb9d4..9925460 100644
--- a/src/ios/lib/JPUSHService.h
+++ b/src/ios/lib/JPUSHService.h
@@ -6,10 +6,10 @@
* | | | | / /\ \ | | | | \ \______| |
* | | | | /_/ \_\ | | | | \_________|
*
- * Copyright (c) 2011 ~ 2015 Shenzhen HXHG. All rights reserved.
+ * Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
*/
-#define JPUSH_VERSION_NUMBER 3.0.0
+#define JPUSH_VERSION_NUMBER 3.0.1
#import
diff --git a/src/ios/lib/jcore-ios-1.0.0.a b/src/ios/lib/jcore-ios-1.1.0.a
similarity index 72%
rename from src/ios/lib/jcore-ios-1.0.0.a
rename to src/ios/lib/jcore-ios-1.1.0.a
index dfc687d..dd63d2b 100644
Binary files a/src/ios/lib/jcore-ios-1.0.0.a and b/src/ios/lib/jcore-ios-1.1.0.a differ
diff --git a/src/ios/lib/jpush-ios-3.0.0.a b/src/ios/lib/jpush-ios-3.0.1.a
similarity index 62%
rename from src/ios/lib/jpush-ios-3.0.0.a
rename to src/ios/lib/jpush-ios-3.0.1.a
index 74f2dc9..182dca7 100644
Binary files a/src/ios/lib/jpush-ios-3.0.0.a and b/src/ios/lib/jpush-ios-3.0.1.a differ