Skip to content

Commit fba6ef8

Browse files
authored
Merge pull request avivais#83 from davebcn87/master
fix (auto register): fixed auto register preference set to false not working
2 parents ea51e88 + c845985 commit fba6ef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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"] || [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)