diff --git a/plugin/src/withAirshipIOS.ts b/plugin/src/withAirshipIOS.ts index be4c412..8c09907 100644 --- a/plugin/src/withAirshipIOS.ts +++ b/plugin/src/withAirshipIOS.ts @@ -89,7 +89,8 @@ async function writeNotificationServiceFilesAsync(props: AirshipIOSPluginProps, console.error(err); return; } - writeFileSync(join(extensionPath, NOTIFICATION_SERVICE_INFO_PLIST_FILE_NAME), data); + const infoPlistFilename = props.notificationServiceTargetName ? props.notificationServiceTargetName + "-Info.plist" : NOTIFICATION_SERVICE_INFO_PLIST_FILE_NAME; + writeFileSync(join(extensionPath, infoPlistFilename), data); }); };