diff --git a/example/ios-demo/PushDemo.xcodeproj/project.pbxproj b/example/ios-demo/PushDemo.xcodeproj/project.pbxproj index 2cef9653..3a45c471 100644 --- a/example/ios-demo/PushDemo.xcodeproj/project.pbxproj +++ b/example/ios-demo/PushDemo.xcodeproj/project.pbxproj @@ -226,6 +226,7 @@ 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 6228B0721DA8D09D00862BA3 /* PushDemo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = PushDemo.entitlements; path = PushDemo/PushDemo.entitlements; sourceTree = ""; }; 62C31F6D1E556D5600AC54A4 /* RCTJPushModule.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTJPushModule.xcodeproj; path = ../../ios/RCTJPushModule/RCTJPushModule.xcodeproj; sourceTree = ""; }; + 62E24CE61E75092C00490B3F /* UserNotifications.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotifications.framework; path = System/Library/Frameworks/UserNotifications.framework; sourceTree = SDKROOT; }; 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; /* End PBXFileReference section */ @@ -375,6 +376,14 @@ name = Products; sourceTree = ""; }; + 62E24CE51E75092C00490B3F /* Frameworks */ = { + isa = PBXGroup; + children = ( + 62E24CE61E75092C00490B3F /* UserNotifications.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; 78C398B11ACF4ADC00677621 /* Products */ = { isa = PBXGroup; children = ( @@ -418,6 +427,7 @@ 832341AE1AAA6A7D00B99B32 /* Libraries */, 00E356EF1AD99517003FC87E /* PushDemoTests */, 83CBBA001A601CBA00E9B192 /* Products */, + 62E24CE51E75092C00490B3F /* Frameworks */, ); indentWidth = 2; sourceTree = ""; diff --git a/example/ios-demo/PushDemo/AppDelegate.m b/example/ios-demo/PushDemo/AppDelegate.m index fef9a04f..e753e481 100644 --- a/example/ios-demo/PushDemo/AppDelegate.m +++ b/example/ios-demo/PushDemo/AppDelegate.m @@ -44,7 +44,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( NSURL *jsCodeLocation; // jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; - jsCodeLocation = [NSURL URLWithString:@"http://192.168.10.93:8081/index.ios.bundle?platform=ios&dev=true"]; + jsCodeLocation = [NSURL URLWithString:@"http://192.168.8.190:8081/index.ios.bundle?platform=ios&dev=true"]; RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation moduleName:@"PushDemo" initialProperties:nil diff --git a/ios/RCTJPushModule/RCTJPushModule.xcodeproj/xcuserdata/HuminiOS.xcuserdatad/xcschemes/xcschememanagement.plist b/ios/RCTJPushModule/RCTJPushModule.xcodeproj/xcuserdata/HuminiOS.xcuserdatad/xcschemes/xcschememanagement.plist index a8336c33..8dc519a5 100644 --- a/ios/RCTJPushModule/RCTJPushModule.xcodeproj/xcuserdata/HuminiOS.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/ios/RCTJPushModule/RCTJPushModule.xcodeproj/xcuserdata/HuminiOS.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,7 +7,7 @@ RCTJPushModule.xcscheme orderHint - 11 + 0 SuppressBuildableAutocreation diff --git a/ios/RCTJPushModule/RCTJPushModule/RCTJPushModule.m b/ios/RCTJPushModule/RCTJPushModule/RCTJPushModule.m index f8ff3efd..4c9f3e30 100644 --- a/ios/RCTJPushModule/RCTJPushModule/RCTJPushModule.m +++ b/ios/RCTJPushModule/RCTJPushModule/RCTJPushModule.m @@ -46,7 +46,6 @@ + (id)allocWithZone:(NSZone *)zone { - (id)init { self = [super init]; - _isJPushDidLogin = NO; NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter];