コード例 #1
0
            /// <param name="error">SendTagsError</param>
            public void onFailure(AndroidJavaObject error)
            {
                var code = error.Call <int>("getCode");
                var msg  = error.Call <string>("getMessage");

                SDKDebug.Error($"{code} - {msg}");
                _complete(false);
            }
コード例 #2
0
        /// <summary>
        /// Used to provide a reference for the global callbacks
        /// </summary>
        public OneSignalAndroid()
        {
            if (_instance != null)
            {
                SDKDebug.Error("Additional instance of OneSignalAndroid created.");
            }

            _instance = this;
        }
コード例 #3
0
        public override void Initialize(string appId)
        {
            if (string.IsNullOrEmpty(appId))
            {
                SDKDebug.Error("appId is null or empty");
                return;
            }

            SDKDebug.Warn("Native SDK is placeholder. Please run on supported platform (iOS or Android).");
        }
コード例 #4
0
 /// <param name="response">JSONObject</param>
 public void onFailure(AndroidJavaObject response)
 {
     SDKDebug.Error(response.Call <string>("toString"));
     _complete(null);
 }