Skip to main content

Hi there -

 

Since this topic has been brought up multiple times and left unanswered; I’d like to raise it again for Unity SDK. Android/iOS Native applications might be easier to add/remove code snippets, but with Unity wrappers accessing native code, it is much trickier and opens up potential pitfalls.

 

Currently - our single source of truth for subscription revenue tracking is Adjust. We are using Unity’s IAP Package to complete the purchase and afterwards passing following data points to Adjust from the Client so that they can keep validate/track and attribute the revenue to the right marketing source.

Apple transactionId originalTransactionId 

GooglePlay orderId

Reference Adjust SDK Doc: https://dev.adjust.com/en/sdk/unity/v4/features/subscriptions#record-the-purchase-region-ios-only

I’d like to retain Adjust still as single source of truth - my priority concern Revenue - Marketing attributions. However, RC SDK doesn’t give any option to access these variables and I need to find workarounds which basically decreases the value of having RC.

Summarize:

  1. Without enabling S2S connection to Adjust
  2. I want to record Subscriptions to Adjust within the Client
  3. Therefore, I need access to these IDs

How can I achieve this?

 

In addition to above, Adjust requires:

  • receipt for iOS
  • signature and purchaseToken for Android


Hi @naknaknak,

For iOS, you might be able to use Unity IAP just for the receipt: https://docs.unity3d.com/Manual/UnityIAPiOSMAS.html#:~:text=Reading%20the%20App%20Receipt You wouldn’t need to use any other part of Unity IAP.

For Android, I think the options are more limited. Unity doesn’t seem to document how to get the purchase token here: https://docs.unity3d.com/Manual/UnityIAPGooglePlay.html It seems like you can build a listener to get notified of new purchases and check the transaction ID that way.