Ejemplo n.º 1
0
        public void onUnexpectedErrorInStore(string message, bool alsoPush)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onUnexpectedErrorInStore");

            JSONObject eventJSON = null;

            try {
                eventJSON = new JSONObject(message);
            } catch {}

            if (eventJSON != null && eventJSON ["errorCode"] != null)
            {
                StoreEvents.OnUnexpectedStoreError((int)eventJSON ["errorCode"].n);
            }
            else
            {
                StoreEvents.OnUnexpectedErrorInStore(message);
            }

            if (alsoPush)
            {
#if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR
                sep.PushEventSoomlaStoreInitialized();
#endif
            }
        }
Ejemplo n.º 2
0
        public void onUnexpectedStoreError(string message, bool alsoPush)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY OnUnexpectedStoreError");

            JSONObject eventJSON = new JSONObject(message);

            StoreEvents.OnUnexpectedStoreError((int)eventJSON ["errorCode"].n);

            if (alsoPush)
            {
#if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR
                sep.PushEventSoomlaStoreInitialized();
#endif
            }
        }