Commit 95e39080 authored by JTB's avatar JTB
Browse files

Switched gcmSandbox to NSNumber not bool

parent f68c54cb
Loading
Loading
Loading
Loading
+1 −1
Changes for src/ios/PushPlugin.h: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@

//  GCM Features
@property(nonatomic, assign) BOOL usesGCM;
@property(nonatomic, assign) BOOL gcmSandbox;
@property(nonatomic, assign) NSNumber* gcmSandbox;
@property(nonatomic, assign) NSString *gcmSenderId;
@property(nonatomic, strong) NSDictionary *gcmRegistrationOptions;
@property(nonatomic, strong) void (^gcmRegistrationHandler) (NSString *registrationToken, NSError *error);
+3 −3
Changes for src/ios/PushPlugin.m: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -175,13 +175,13 @@
    }
    id gcmSandBoxArg = [iosOptions objectForKey:@"gcmSandbox"];

    [self setGcmSandbox:NO];
    [self setGcmSandbox:@NO];
    if ([self usesGCM] &&
        (([gcmSandBoxArg isKindOfClass:[NSString class]] && [gcmSandBoxArg isEqualToString:@"true"]) ||
            [gcmSandBoxArg boolValue]))
    {
        NSLog(@"Using GCM Sandbox");
        [self setGcmSandbox:YES];
        [self setGcmSandbox:@YES];
    }
    
    if (notificationMessage)			// if there is a pending startup notification
@@ -253,7 +253,7 @@
        [[GGLInstanceID sharedInstance] startWithConfig:instanceIDConfig];
        
        [self setGcmRegistrationOptions: @{kGGLInstanceIDRegisterAPNSOption:deviceToken,
                                     kGGLInstanceIDAPNSServerTypeSandboxOption:@YES}];
                                     kGGLInstanceIDAPNSServerTypeSandboxOption:[self gcmSandbox]}];
        
        [[GGLInstanceID sharedInstance] tokenWithAuthorizedEntity:[self gcmSenderId]
                                                            scope:kGGLInstanceIDScopeGCM