Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Find the User Presence
sreenivas.kaushik #1
Member since Aug 2015 · 7 posts
Group memberships: Members
Show profile · Link to this post
Subject: Find the User Presence
Hi Alex,

I am using agsXMPP library (Open Source) and my requirement is to send Push Notification to the User, if the user presence is Unavailable. I am using .Net code to send the Push Notification for both IOS and Andriod.

I am finding difficulty to identifying the User Presence. Could you please provide me the sample code (C#) to identify the User Presence using XMPP so that I can send a Push notification in of Presence is "Unavailable".

Thanks in Advance,

Sreenivas Kaushik
Alex #2
Member since Feb 2003 · 4433 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
in OnPresence just do:

  1. if (pres.Type == PresenceType.unavailable)
  2. {
  3.     // add your code here
  4. }
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: agsXMPP RSS