[A] appsflyer, SDK facade init method
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Threading.Tasks;
|
||||
using asap.core;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using UnityEngine;
|
||||
using AppsFlyerSDK;
|
||||
|
||||
namespace tysdk
|
||||
{
|
||||
@@ -38,13 +39,19 @@ namespace tysdk
|
||||
|
||||
public void Init()
|
||||
{
|
||||
#if UNITY_ANDROID
|
||||
//AppsFlyer.setIsDebug(true);
|
||||
#if UNITY_IOS
|
||||
AppsFlyer.initSDK("rSySeWtvKabfbPZE7Lmx7C","6505145935");
|
||||
#elif UNITY_ANDROID
|
||||
AppsFlyer.initSDK("rSySeWtvKabfbPZE7Lmx7C", null);
|
||||
UnityBridgeFunc.InitSDK();
|
||||
#endif
|
||||
AppsFlyer.startSDK();
|
||||
}
|
||||
|
||||
public void InitAfterLogin()
|
||||
{
|
||||
AppsFlyer.setCustomerUserId(_accountInfo.strUserId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user