When testing push notifications in a production ad-hoc build on iOS, i noticed that the gcmSandbox option was being set to YES even though the javascript was passing false.
Upon debugging it looks like the return values were NSStrings @"1" or @"0" for true and false, both of which when casted directly to BOOL return YES (since they are both non-nil). Using boolValue seems to set the value correctly.
When testing push notifications in a production ad-hoc build on iOS, i noticed that the gcmSandbox option was being set to YES even though the javascript was passing false.
Upon debugging it looks like the return values were NSStrings @"1" or @"0" for true and false, both of which when casted directly to BOOL return YES (since they are both non-nil). Using boolValue seems to set the value correctly.
i.e.