Did some changes for iOS
parent
1938cd5f46
commit
945aac36af
@ -0,0 +1,23 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using OneSignalSDK;
|
||||||
|
using OneSignalSDK.Debug.Models;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class OSNInitializer : MonoBehaviour
|
||||||
|
{
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
string ons_id = "";
|
||||||
|
#if UNITY_ANDROID
|
||||||
|
ons_id = GameConstants.OSN_Android;
|
||||||
|
#elif UNITY_IOS
|
||||||
|
ons_id = GameConstants.OSN_iOS;
|
||||||
|
#endif
|
||||||
|
Debug.Log($"Initializing with appId <b>{ons_id}</b>");
|
||||||
|
OneSignal.Debug.LogLevel = LogLevel.Debug;
|
||||||
|
OneSignal.Initialize(ons_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: afb77ce3ddce9b34b8539e880cb78cb2
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in New Issue