Beispiel #1
0
        internal void SendRemoteNotification(String device, String group, IList <String> users, IDictionary <String, String> notification, MobeelizerOperationCallback callback)
        {
            Thread thread = new Thread(new ThreadStart(() =>
            {
                MobeelizerOperationError error;
                try
                {
                    CheckIfLoggedIn();
                    error = connectionManager.SendRemoteNotification(device, group, users, notification);
                }
                catch (Exception e)
                {
                    Log.i(TAG, e.Message);
                    error = MobeelizerOperationError.Exception(e);
                }

                callback(error);
            }));

            thread.Name = "Send notification thread";
            thread.Start();
        }