|
1 rok temu | |
---|---|---|
.. | ||
.sample.json | 1 rok temu | |
FamilySharing.cs | 1 rok temu | |
FamilySharing.cs.meta | 1 rok temu | |
FamilySharing.unity | 1 rok temu | |
FamilySharing.unity.meta | 1 rok temu | |
README.md | 1 rok temu | |
README.md.meta | 1 rok temu | |
UserWarningAppleAppStore.cs | 1 rok temu | |
UserWarningAppleAppStore.cs.meta | 1 rok temu |
This sample shows how to implement and use Apple’s Family Sharing feature in your application. The family sharing feature enables players to share non-consumable and subscription in-app purchases with members of the same family group.
Unfortunately, Apple doesn’t support family sharing on the Sandbox, Xcode testing, or TestFlight. The only way to test
the full feature is by using an app published on the app store.
However, it is possible to test the AppleProductMetadata.isFamilyShareable
and
the IAppleConfiguration.SetEntitlementsRevokedListener
API by using Xcode testing and refunding a purchase.
Even though it is hard to test this sample, it is still provided to showcase how to implement family sharing using Unity
IAP.
InAppPurchasing game object > Family Sharing script > Family Shareable Subscription ProductId field
or change the familyShareableSubscriptionProductId
the FamilySharing.cs
script.Buy Family Shared Subscription
. You should see your subscription status updated.See Apple’s Family Sharing documentation for more information.