<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic app keep skipping the webex initializing step and crashed in Webex for Developers</title>
    <link>https://community.cisco.com/t5/webex-for-developers/app-keep-skipping-the-webex-initializing-step-and-crashed/m-p/4753332#M1807</link>
    <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to app development, I am currently facing issue with the android SDK. I was following the instructions listed in the documentation page of the webex&amp;nbsp;android SDK to set up a basic massaging system to test it, but somehow my app keep skipping in the webex initializing step and crash. I have no idea how to fix it. here is my code. I removed jwt token and room number in this post. my app also use flutter chennelmethod to communicate with kotlin to use the webex sdk massage function. IDK if this will affect it or not&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.Webex&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.message.LocalFile&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.message.Mention&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.message.Message&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.CompletionHandler&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;android.webkit.WebView&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;androidx.lifecycle.LiveData&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;androidx.lifecycle.MutableLiveData&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.auth.JWTAuthenticator&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.auth.OAuthWebViewAuthenticator&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.auth.TokenAuthenticator&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;android.util.Log&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;var &lt;/SPAN&gt;token: String = &lt;SPAN&gt;"JWT token"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;authenticator: JWTAuthenticator = JWTAuthenticator()&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;webex = Webex(application&lt;SPAN&gt;, &lt;/SPAN&gt;authenticator)&lt;BR /&gt;&lt;BR /&gt;webex.initialize(CompletionHandler &lt;SPAN&gt;{ &lt;/SPAN&gt;result &lt;SPAN&gt;-&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;if &lt;/SPAN&gt;(result.error != &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;&lt;SPAN&gt;//already authorised&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt; } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;authenticator.authorize(token&lt;SPAN&gt;, &lt;/SPAN&gt;CompletionHandler &lt;SPAN&gt;{ &lt;/SPAN&gt;result &lt;SPAN&gt;-&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;if &lt;/SPAN&gt;(result.error != &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;&lt;SPAN&gt;//Handle the error&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt; }&lt;SPAN&gt;else&lt;/SPAN&gt;{&lt;BR /&gt;&lt;SPAN&gt;//Authorization successful&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt; }&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// testing posting massage in space&lt;BR /&gt;&lt;/SPAN&gt;testing += &lt;SPAN&gt;"testing sending massage &lt;/SPAN&gt;&lt;SPAN&gt;\n\n&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;BR /&gt;&lt;/SPAN&gt;webex.messages.postToSpace(&lt;SPAN&gt;"correct room number"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;Message.Text.plain(&lt;SPAN&gt;"Hello from test app"&lt;/SPAN&gt;)&lt;SPAN&gt;, null, null, &lt;/SPAN&gt;CompletionHandler&amp;lt;Message&amp;gt; &lt;SPAN&gt;{ &lt;/SPAN&gt;result &lt;SPAN&gt;-&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt;(result != &lt;SPAN&gt;null &lt;/SPAN&gt;&amp;amp;&amp;amp; result.isSuccessful){&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;message = result.data&lt;BR /&gt;testing += &lt;SPAN&gt;"send successful &lt;/SPAN&gt;&lt;SPAN&gt;\n\n&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt; }&lt;BR /&gt;&lt;SPAN&gt;else&lt;BR /&gt;&lt;/SPAN&gt; {&lt;BR /&gt;testing += &lt;SPAN&gt;"send failed &lt;/SPAN&gt;&lt;SPAN&gt;\n\n&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt; }&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 06:55:56 GMT</pubDate>
    <dc:creator>rust</dc:creator>
    <dc:date>2023-01-12T06:55:56Z</dc:date>
    <item>
      <title>app keep skipping the webex initializing step and crashed</title>
      <link>https://community.cisco.com/t5/webex-for-developers/app-keep-skipping-the-webex-initializing-step-and-crashed/m-p/4753332#M1807</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to app development, I am currently facing issue with the android SDK. I was following the instructions listed in the documentation page of the webex&amp;nbsp;android SDK to set up a basic massaging system to test it, but somehow my app keep skipping in the webex initializing step and crash. I have no idea how to fix it. here is my code. I removed jwt token and room number in this post. my app also use flutter chennelmethod to communicate with kotlin to use the webex sdk massage function. IDK if this will affect it or not&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.Webex&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.message.LocalFile&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.message.Mention&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.message.Message&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.CompletionHandler&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;android.webkit.WebView&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;androidx.lifecycle.LiveData&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;androidx.lifecycle.MutableLiveData&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.auth.JWTAuthenticator&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.auth.OAuthWebViewAuthenticator&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.ciscowebex.androidsdk.auth.TokenAuthenticator&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;android.util.Log&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;var &lt;/SPAN&gt;token: String = &lt;SPAN&gt;"JWT token"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;authenticator: JWTAuthenticator = JWTAuthenticator()&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;webex = Webex(application&lt;SPAN&gt;, &lt;/SPAN&gt;authenticator)&lt;BR /&gt;&lt;BR /&gt;webex.initialize(CompletionHandler &lt;SPAN&gt;{ &lt;/SPAN&gt;result &lt;SPAN&gt;-&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;if &lt;/SPAN&gt;(result.error != &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;&lt;SPAN&gt;//already authorised&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt; } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;authenticator.authorize(token&lt;SPAN&gt;, &lt;/SPAN&gt;CompletionHandler &lt;SPAN&gt;{ &lt;/SPAN&gt;result &lt;SPAN&gt;-&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;if &lt;/SPAN&gt;(result.error != &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;&lt;SPAN&gt;//Handle the error&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt; }&lt;SPAN&gt;else&lt;/SPAN&gt;{&lt;BR /&gt;&lt;SPAN&gt;//Authorization successful&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt; }&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// testing posting massage in space&lt;BR /&gt;&lt;/SPAN&gt;testing += &lt;SPAN&gt;"testing sending massage &lt;/SPAN&gt;&lt;SPAN&gt;\n\n&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;BR /&gt;&lt;/SPAN&gt;webex.messages.postToSpace(&lt;SPAN&gt;"correct room number"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;Message.Text.plain(&lt;SPAN&gt;"Hello from test app"&lt;/SPAN&gt;)&lt;SPAN&gt;, null, null, &lt;/SPAN&gt;CompletionHandler&amp;lt;Message&amp;gt; &lt;SPAN&gt;{ &lt;/SPAN&gt;result &lt;SPAN&gt;-&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt;(result != &lt;SPAN&gt;null &lt;/SPAN&gt;&amp;amp;&amp;amp; result.isSuccessful){&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;message = result.data&lt;BR /&gt;testing += &lt;SPAN&gt;"send successful &lt;/SPAN&gt;&lt;SPAN&gt;\n\n&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt; }&lt;BR /&gt;&lt;SPAN&gt;else&lt;BR /&gt;&lt;/SPAN&gt; {&lt;BR /&gt;testing += &lt;SPAN&gt;"send failed &lt;/SPAN&gt;&lt;SPAN&gt;\n\n&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt; }&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 06:55:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/app-keep-skipping-the-webex-initializing-step-and-crashed/m-p/4753332#M1807</guid>
      <dc:creator>rust</dc:creator>
      <dc:date>2023-01-12T06:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: app keep skipping the webex initializing step and crashed</title>
      <link>https://community.cisco.com/t5/webex-for-developers/app-keep-skipping-the-webex-initializing-step-and-crashed/m-p/4753624#M1814</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1452536"&gt;@rust&lt;/a&gt;&amp;nbsp;the best way to understand how to work with the Webex Android SDK is to test it out with our KitchenSink app here&amp;nbsp;&lt;A href="https://github.com/webex/webex-android-sdk-example" target="_blank"&gt;https://github.com/webex/webex-android-sdk-example&lt;/A&gt;&amp;nbsp;. It has messaging implemented, so you can use it as a blueprint for your implementation.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 12:53:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/app-keep-skipping-the-webex-initializing-step-and-crashed/m-p/4753624#M1814</guid>
      <dc:creator>Janos Benyovszki</dc:creator>
      <dc:date>2023-01-12T12:53:30Z</dc:date>
    </item>
  </channel>
</rss>

