public static void registerAsync(string senderId, GCMRegisterComplete callback) { if (RegistrationCallback != null) throw new Exception ("GCM Registration already in progress"); RegistrationCallback = callback; PlayFabGCMClass.CallStatic ("registerInBackground", new object[] {senderId}); }
internal static void RegistrationComplete(string id, string error) { if (_RegistrationCallback == null) { return; } _RegistrationCallback(id, error); _RegistrationCallback = null; }
public static void registerAsync(string senderId, GCMRegisterComplete callback) { if (RegistrationCallback != null) { throw new Exception("GCM Registration already in progress"); } RegistrationCallback = callback; PlayFabGCMClass.CallStatic("registerInBackground", new object[] { senderId }); }
internal static void RegistrationComplete(string id, string error) { if (_RegistrationCallback == null) return; _RegistrationCallback(id, error); _RegistrationCallback = null; }
public static void registerAsync(string senderId, GCMRegisterComplete callback) { registrationComplete(null, "Google Cloud Messaging not available"); }
public static void registerAsync(string senderId, GCMRegisterComplete callback) { registrationComplete(null, "Google Cloud Messaging not available"); }