XMPP/JABBER – Best protocol to IM for B4A

XMPP/JABBER - Best protocol to IM for B4A

XMPP/JABBER – Best protocol to IM for B4A

Author
Alberto Iglesias
Release
2019-09-12
Version
2.0.0
Requirement
B4A

£8.99

XMPP/JABBER – Best protocol to IM for B4A

SKU: B4ALIBXMPP Category: Tag:

Product Description


XMPP/JABBER – Best protocol to Instant Messengers for B4A

 

This library was made based on XMPP Protocol

Installation instructions:
– Copy the .xml and .jar(s) files to your custom libraries folder
– Select in your REFERENCED LIBRARIES

ReferenceXMPP

Events:

  • deliverycomplete (Message As String)
  • messageArrived (Message As String)
  • onConnect ()
  • onDisconnect ()
  • onDisconnect (Status as boolean )
  • onInitialized ()
  • onLogin ()
  • ErrorSendMessage(Error As String)
  • ErrorConnect(Error As String)
  • ErrorLogin(Error As String)
  • PresenceChanged(Presence As String)*Obs: PresenceChanged depends of each server.
    Was observed in tests that some servers do not support the “presence listener”

Fields:

  • Host As String
    Name or IP of the Jabber/XMPP Server
  • JavaDebug As Boolean
    Enable/Disable Debug from Java Code
  • Port As Int
    Port of the Jabber/XMPP Server

Methods:

  • About As String
    About the developer
  • Connect
    Connect to the Jabber/XMPP Server
  • ChangeStatus(int iStatus)
    Change the status of your client
  • CreateChat (userJID As String)
    Create Chat with the JIB User
  • Disconnect
    Disconnect from Jabber/XMPP Server
  • GetHost As String
    Returns the host name of the server where the XMPP server is running
  • GetRoster As List
    Get Roster List
  • GetUser As String
    Get the connection current user
  • Initialize (eventname As String)
    Initializing XMPP Object
  • IsConnected As Boolean
    Get a connection status
  • IsSecureConnection As Boolean
    Check if the connection is secure
  • Login (Username As String, Password As String)
    Login into to the Jabber/XMPP Server
  • SendMessage (message As String)
    Send a message into the chat
  • Version As String
    Get the Library Version

Permissions:

  • android.permission.ACCESS_WIFI_STATE
  • android.permission.INTERNET
Xmpp1
Xmpp2
Xmpp3

You can try your APP using web client in https://jwchat.org/

References:
http://xmpp.org/
https://jwchat.org/

 

Library

 

Sample 1
Sample 2

 

BEFORE PAY ANY LIBRAY, YOU CAN TEST THE LIBRARY TO MAKE SURE WILL BE WORK FOR YOUR PROJECT