File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,10 +114,11 @@ function validatePushNotificationOptions(options: CustomerIOPluginPushNotificati
114114
115115 let isValid = true ;
116116
117- if ( options . appGroupId !== undefined ) {
118- isValid = validateString ( options . appGroupId , 'appGroupId' , context ) && isValid ;
119- if ( isValid && options . appGroupId !== undefined && ! options . appGroupId . startsWith ( 'group.' ) ) {
120- logger . warn ( `${ context } : appGroupId "${ options . appGroupId } " does not start with "group." — ensure this matches your Apple App Group entitlement.` ) ;
117+ const appGroupId = options . appGroupId ;
118+ if ( appGroupId !== undefined ) {
119+ isValid = validateString ( appGroupId , 'appGroupId' , context ) && isValid ;
120+ if ( isValid && ! appGroupId . startsWith ( 'group.' ) ) {
121+ logger . warn ( `${ context } : appGroupId "${ appGroupId } " does not start with "group." — ensure this matches your Apple App Group entitlement.` ) ;
121122 }
122123 }
123124
You can’t perform that action at this time.
0 commit comments