public void Unregister()
 {
     if (hub != null)
     {
         hub.UnregisterNativeAsync(err => {
             if (err != null)
             {
                 Console.WriteLine("Error: " + err.Description);
             }
             else
             {
                 Console.WriteLine("Success");
             }
         });
     }
 }