Connection resturns bad request

0 votes
 protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
 
            SetContentView(Resource.Layout.Login);
            WarpClient.initialize(Constants.API_KEY, Constants.SECRET_KEY);
            WarpClient.GetInstance().AddConnectionRequestListener(this);
 
            //Create the user interface in code
            var layout = new LinearLayout(this);
 
            layout.Orientation = Orientation.Vertical;
            var btnLogin = FindViewById<ImageButton>(Resource.Id.imgbtnLogin);
            var txtUserId = FindViewById<EditText>(Resource.Id.txtUsername);
            var txtPassword = FindViewById<EditText>(Resource.Id.txtPassword);
          
            btnLogin.Click += (sender, e) =>
            {
                          
                //WarpClient.setRecoveryAllowance(10);
                //WarpClient.GetInstance().RecoverConnection();
                WarpClient.GetInstance().Connect(txtUserId.Text);
 
                //StartActivity(typeof(MainActivity));
                //this.Finish();
            };
        }
 
 public void onConnectDone(ConnectEvent evt)
        {
            if (Looper.MyLooper() == null)
                Looper.Prepare();
            if (evt.getResult() == WarpResponseResultCode.SUCCESS)
            {
                Console.WriteLine("Connection Successful");
                Android.Widget.Toast.MakeText(this, "Connection Successful", Android.Widget.ToastLength.Long).Show();
              
                StartActivity(typeof(MainActivity));
                this.Finish();
                
            }
            else
            {
                Console.WriteLine("Connection Failed");
                Android.Widget.Toast.MakeText(this, "Connection Failed", Android.Widget.ToastLength.Long).Show();
            }
        }

 

asked Mar 14, 2021 in Android by sunita.more (10 points)

2 Answers

0 votes

We have forwarded your query to our team.  We will get back to you as soon as possible.

Regards,

App42 Team

answered Mar 15, 2021 by vanshika.saraf (10 points)
0 votes

Hi Sunita,

Could you please share it on mail on mail id: support@shephertz.com and also what is the error/response code you are getting in response.

Regards,

App42 Team

 

answered Mar 16, 2021 by vanshika.saraf (10 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...