Wait for OSN

iOS
Hazim Bin Ijaz 2 months ago
parent 9d3f1e1e26
commit 4b73088635

@ -8,6 +8,12 @@ public class OSNInitializer : MonoBehaviour
{ {
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{
Invoke(nameof(InitializeOSN),2f);
}
private void InitializeOSN()
{ {
string ons_id = ""; string ons_id = "";
#if UNITY_ANDROID #if UNITY_ANDROID
@ -18,6 +24,7 @@ public class OSNInitializer : MonoBehaviour
Debug.Log($"Initializing with appId <b>{ons_id}</b>"); Debug.Log($"Initializing with appId <b>{ons_id}</b>");
OneSignal.Debug.LogLevel = LogLevel.Debug; OneSignal.Debug.LogLevel = LogLevel.Debug;
OneSignal.Initialize(ons_id); OneSignal.Initialize(ons_id);
} }
} }

Loading…
Cancel
Save