Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
R_Bheda #1
Member since Jun 2012 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: WP7 App connection problem
Hello Sir,

   I just download the sample & run in emulator click on the "Connect" button so nothing happen. Not any page will open. I want to work with Gmail account so here is my code:

  1. private void cmdConnect_Click(object sender, RoutedEventArgs e)
  2. {
  3.    xmppClient.Username = "username";
  4.    xmppClient.Password = "password";
  5.    xmppClient.XmppDomain = "gmail.com";
  6.    xmppClient.Hostname = "talk.google.com";
  7.    xmppClient.Uri = new Uri("http://gmail.com:5222/");
  8.    xmppClient.Transport = Matrix.Net.Transport.BOSH;
  9.    xmppClient.Show = Show.dnd;
  10.    xmppClient.Status = "Testing on Windows Phone 7";
  11.    xmppClient.Open();
  12. }

is there any changes for that.

Thank you in Advance.

Romil.
This post was edited on 2012-06-21, 12:35 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
GTalk supports no BOSH. You have to use sockets.
Remove those lines from your code:

  1. xmppClient.Uri = new Uri("http://gmail.com:5222/");
  2. xmppClient.Transport = Matrix.Net.Transport.BOSH;

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS