Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get the id of the message when sending it #183

Open
rodrigoGA opened this issue Nov 18, 2020 · 1 comment
Open

get the id of the message when sending it #183

rodrigoGA opened this issue Nov 18, 2020 · 1 comment

Comments

@rodrigoGA
Copy link

rodrigoGA commented Nov 18, 2020

How can I get the message id when sending it?
I am sending it this way.

            val settings = Settings()
            settings.useSystemSending = true
            val transaction = Transaction(ctx, settings)
            val message = com.klinker.android.send_message.Message(msg.phoneNumber, msg.body)
            transaction.sendNewMessage(message, Transaction.NO_THREAD_ID)

But I need the message id to later check the status of said message.

@MeyerMathieu
Copy link

transaction.sendNewMessage(...) returns the message id.

Store its return value as it :

val messageId = sendNewMessage(...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants