Skip to content

Fail to Set Access Token Mesibo After Mesibo Stop #72

@adisiji

Description

@adisiji

Hi there,
Thank you for your kind support here.

I have a problem when I stop Mesibo, then setup the access token with different token. Because I want to change the user.
Code to Stop Mesibo:

if (Mesibo.isReady()) {
    Mesibo.getSelfProfile().removeLocalProfile()
    val mesiboStop = Mesibo.stop(true)
    Mesibo.reset()
    Timber.d("Stop Mesibo = $mesiboStop")
    mNotifyUser?.clearNotification()
    started = false
}

Then I'm trying to start the Mesibo again:

// set access token
   val mesiboToken = tokenRepository.loadMesiboToken()
   val setAccessToken = Mesibo.setAccessToken(mesiboToken)
   Timber.d("SetAccessToken Mesibo : $setAccessToken") --> return -1

   val setDatabase = Mesibo.setDatabase("", 0)
   Timber.d("SetDB Mesibo : $setDatabase") --> return false

   // Now start mesibo
   val startMesibo = Mesibo.start()
   Timber.d("Start Mesibo : $startMesibo") --> return 0

   MesiboCall.getInstance().run {
         val uiProperties = createCallProperties(true).ui
         uiProperties.title = context.getString(R.string.app_name)
         setDefaultUiProperties(uiProperties)
   }

Android SDK Mesibo Version:

MESIBO_API = "1.6.4"
MESIBO_CALLS = "1.6.4"
MESIBO_UI = "1.6.4"

Thank You

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions