Skip to content

Commit d9617f8

Browse files
authored
Merge pull request #106 from OneSignal/universal_extension
Universal Notification Service Extension Target Support
2 parents 78d77cf + 76f3041 commit d9617f8

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)