Skip to content

Commit c845985

Browse files
authored
change [autoReg caseInsensitiveCompare:@"true"] != -1 to == 0
1 parent 6349b97 commit c845985

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ios/AppDelegate+parsepush.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ - (BOOL)swizzled_application:(UIApplication*)application didFinishLaunchingWithO
125125
}]];
126126
}
127127

128-
if(!autoReg.length || [autoReg caseInsensitiveCompare:@"true"] != -1 || [application isRegisteredForRemoteNotifications]){
128+
if(!autoReg.length || [autoReg caseInsensitiveCompare:@"true"] == 0 || [application isRegisteredForRemoteNotifications]){
129129
// if autoReg is true or nonexistent (defaults to true)
130130
// or app already registered for PN, do/redo registration
131131
//

0 commit comments

Comments
 (0)