Skip to content

Commit

Permalink
fix _isJPushDidLogin reload reset bug
Browse files Browse the repository at this point in the history
  • Loading branch information
huangminlinux committed Mar 13, 2017
1 parent 9d67b37 commit ddb98fd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
10 changes: 10 additions & 0 deletions example/ios-demo/PushDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<group>"; };
6228B0721DA8D09D00862BA3 /* PushDemo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = PushDemo.entitlements; path = PushDemo/PushDemo.entitlements; sourceTree = "<group>"; };
62C31F6D1E556D5600AC54A4 /* RCTJPushModule.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTJPushModule.xcodeproj; path = ../../ios/RCTJPushModule/RCTJPushModule.xcodeproj; sourceTree = "<group>"; };
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 = "<group>"; };
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -375,6 +376,14 @@
name = Products;
sourceTree = "<group>";
};
62E24CE51E75092C00490B3F /* Frameworks */ = {
isa = PBXGroup;
children = (
62E24CE61E75092C00490B3F /* UserNotifications.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
78C398B11ACF4ADC00677621 /* Products */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -418,6 +427,7 @@
832341AE1AAA6A7D00B99B32 /* Libraries */,
00E356EF1AD99517003FC87E /* PushDemoTests */,
83CBBA001A601CBA00E9B192 /* Products */,
62E24CE51E75092C00490B3F /* Frameworks */,
);
indentWidth = 2;
sourceTree = "<group>";
Expand Down
2 changes: 1 addition & 1 deletion example/ios-demo/PushDemo/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>RCTJPushModule.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>11</integer>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
Expand Down
1 change: 0 additions & 1 deletion ios/RCTJPushModule/RCTJPushModule/RCTJPushModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ + (id)allocWithZone:(NSZone *)zone {

- (id)init {
self = [super init];
_isJPushDidLogin = NO;

NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter];

Expand Down

0 comments on commit ddb98fd

Please sign in to comment.