Skip to content

Commit 76f3041

Browse files
committed
Universal Notification Service Extension Target Support
• Previously, the build script was generating a notification service extension that only targeted iPhones on iOS 11.3 • Now supports Universal target with deployment target of 10.0
1 parent 78d77cf commit 76f3041

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

OneSignalExample/Assets/OneSignal/Editor/PostProcessBuildPlayer_iOS.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ public static void OnPostProcessBuild(BuildTarget target, string path)
5454
project.AddFrameworkToProject (notificationServiceTarget, framework, true);
5555
}
5656

57+
//makes it so that the extension target is Universal (not just iPhone) and has an iOS 10 deployment target
58+
project.SetBuildProperty(notificationServiceTarget, "TARGETED_DEVICE_FAMILY", "1,2");
59+
project.SetBuildProperty(notificationServiceTarget, "IPHONEOS_DEPLOYMENT_TARGET", "10.0");
60+
5761
project.SetBuildProperty (notificationServiceTarget, "ARCHS", "$(ARCHS_STANDARD)");
5862
project.SetBuildProperty (notificationServiceTarget, "DEVELOPMENT_TEAM", PlayerSettings.iOS.appleDeveloperTeamID);
5963

0 commit comments

Comments
 (0)