Open a comment creation page directly

Show the create a comment screen directly in your Android app.

This approach allows you to open a comment creation screen. When implemented, a user sees the comment creation screen directly above the full Conversation screen.

📘

The Conversation will be in readOnlyMode. Only the conversation will be shown and the new comment screen won't open.



Requirement

    OpenWeb Android SDK



Implementation

Use the following steps to configure the Conversation:


  1. In onCreate() of an article activity, add the create comment to the Activity.
SpotIm.getCreateCommentIntent(context, CONVERSATION_ID, object :
    SpotCallback<Intent> {
        override fun onSuccess(intent: Intent) {
            startActivity(intent)
        }

        override fun onFailure(exception: SpotException) {
            //Handle error here
    }
})

  1. (Optional) Customize the Conversation.


Did this page help you?