/// <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); }
/// <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; }
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)."); }
/// <param name="response">JSONObject</param> public void onFailure(AndroidJavaObject response) { SDKDebug.Error(response.Call <string>("toString")); _complete(null); }