Integrate third-party SDKs
Last updated
Last updated
If you are using IronSource to diplay ads to your users, you can integrate the justtrack SDK with the IronSource SDK. In that case the justtrack SDK will initialize the IronSource SDK on your behalf and pass the justtrack user id to the IronSource SDK. For each platform, supply the correct app key in the prefab and enable all ad units you need:
You can then access JustTrack.JustTrackSDKBehaviour.IronSourceInitialized
to check if IronSource already has been initialized or use JustTrack.JustTrackSDKBehaviour.OnIronSourceInitialized
to schedule a callback once it has been initialized (the callback is also invoked should IronSource already have been initialized, you do not need check for that yourself prior to this. The callback is always asynchrounously called on the main thread).
If you are using the Firebase SDK next to the justtrack SDK, you can use the justtrack SDK to send the Firebase app instance id of a user to the justtrack backend. You can then later send events from the justtrack backend to Firebase to measure events happening outside of your app or game. To send these events, the justtrack backend needs the Firebase app instance id of the user. You can send this by calling JustTrackSDK.SetFirebaseAppInstanceId(firebaseAppInstanceId)
, but of course this requires you to add additional boilerplate code to your app or game.
Go to the Firebase section of the justtrack SDK configuration and search for the "Enable Firebase Integration" setting. Here you can enable whether the justtrack SDK should automatically perform the call to SetFirebaseAppInstanceId
with the correct value for you on Android as well as iOS.