<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mesibo Real-time Chat APIs - Initialization on mesibo documentation</title><link>https://docs.mesibo.com/api/initialization/</link><description>Recent content in Mesibo Real-time Chat APIs - Initialization on mesibo documentation</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.mesibo.com/api/initialization/index.xml" rel="self" type="application/rss+xml"/><item><title>Mesibo Connection Monitoring</title><link>https://docs.mesibo.com/api/initialization/connection-monitoring/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/initialization/connection-monitoring/</guid><description>&lt;p&gt;You can monitor if your app is connected with the mesibo real-time server (cloud or your on-premise) by implementing &lt;code&gt;Mesibo_onConnectionStatus&lt;/code&gt; in the connection listener. The connection listener is invoked when the connection status is changed. It is also invoked when the token is about to expire.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-java" data-lang="java"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kt"&gt;void&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;Mesibo_onConnectionStatus&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The following are the status values:&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Parameter&lt;/th&gt;
 &lt;th&gt;Description&lt;/th&gt;
 &lt;th&gt;Value&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;MESIBO_STATUS_ONLINE&lt;/strong&gt;&lt;/td&gt;
 &lt;td&gt;The user is connected and online&lt;/td&gt;
 &lt;td&gt;1&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;MESIBO_STATUS_OFFLINE&lt;/strong&gt;&lt;/td&gt;
 &lt;td&gt;The user is offline&lt;/td&gt;
 &lt;td&gt;2&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;MESIBO_STATUS_SIGNOUT&lt;/strong&gt;&lt;/td&gt;
 &lt;td&gt;The user has signed out. The most likely reason is that the user has logged in from another device. You can use multi-device login feature if the user is required to log in from multiple devices simultaneously.&lt;/td&gt;
 &lt;td&gt;3&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;MESIBO_STATUS_AUTHFAIL&lt;/strong&gt;&lt;/td&gt;
 &lt;td&gt;Token is wrong or expired. For Javascript, C++, and Python, it also happens if you have passed the wrong app id in &lt;code&gt;setAppName()&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;4&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;MESIBO_STATUS_STOPPED&lt;/strong&gt;&lt;/td&gt;
 &lt;td&gt;The user is offline and stopped. Automatic reconnection will not be attempted&lt;/td&gt;
 &lt;td&gt;5&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;MESIBO_STATUS_CONNECTING&lt;/strong&gt;&lt;/td&gt;
 &lt;td&gt;The user is connecting but not online yet&lt;/td&gt;
 &lt;td&gt;6&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;MESIBO_STATUS_CONNECTFAILURE&lt;/strong&gt;&lt;/td&gt;
 &lt;td&gt;Connection Failed&lt;/td&gt;
 &lt;td&gt;7&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;MESIBO_STATUS_NONETWORK&lt;/strong&gt;&lt;/td&gt;
 &lt;td&gt;Mesibo API could not detect network connection on your device&lt;/td&gt;
 &lt;td&gt;8&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;MESIBO_STATUS_ONPREMISEERROR&lt;/strong&gt;&lt;/td&gt;
 &lt;td&gt;You have configured the on-premise server but it is not running or the firewall is preventing your apps from connecting to the on-premise server&lt;/td&gt;
 &lt;td&gt;9&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;</description></item><item><title>Mesibo Backup and Data Migration APIs</title><link>https://docs.mesibo.com/api/initialization/backup-and-restore/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.mesibo.com/api/initialization/backup-and-restore/</guid><description>&lt;p&gt;Mesibo backup and data migration APIs allow you to regularly backup your users&amp;rsquo; data (messages, call history, profiles, settings, etc) and then restore it when needed, for example, when the user moves to another device.&lt;/p&gt;
&lt;p&gt;In addition to backup and restore, mesibo provides APIs to know when the last backup was taken, and the age of the database so that you can decide when to initiate the next backup as required by your app or organization policies.&lt;/p&gt;</description></item></channel></rss>