We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6349b97 commit c845985Copy full SHA for c845985
1 file changed
src/ios/AppDelegate+parsepush.m
@@ -125,7 +125,7 @@ - (BOOL)swizzled_application:(UIApplication*)application didFinishLaunchingWithO
125
}]];
126
}
127
128
- if(!autoReg.length || [autoReg caseInsensitiveCompare:@"true"] != -1 || [application isRegisteredForRemoteNotifications]){
+ if(!autoReg.length || [autoReg caseInsensitiveCompare:@"true"] == 0 || [application isRegisteredForRemoteNotifications]){
129
// if autoReg is true or nonexistent (defaults to true)
130
// or app already registered for PN, do/redo registration
131
//
0 commit comments