-
trungnc authored
Templates~/AppsFlyerIapRevenueBridge.cs logs IAP revenue from game code, for projects where the AppsFlyer Purchase Connector stays silent. Not compiled by Unity - copy it into the project to use it. Defaults to Disabled: enabling it while the Purchase Connector still works double-counts revenue. ValidateAndLog goes through validateAndSendInAppPurchase so AppsFlyer verifies the receipt with the store; LogEventOnly sends a bare af_purchase. Hooks InAppPurchaseHelper.onPayoutSuccess, so it needs Omnilatent.InAppPurchaseHelper 2.5.4+. README also notes to check setIsSandbox before blaming the connector: it is fed Debug.isDebugBuild, which is false on TestFlight builds, so sandbox receipts fail validation against production and every event is dropped. Prefab is only re-serialized by the editor; eventLogOnAppLoseFocus and _initPurchaseConnector now spell out the values they already defaulted to. Co-Authored-By:Claude Opus 5 <noreply@anthropic.com>
df7201eb
Loading