Bridge API Tester

MicroApp for testing Ayoba MicroApp Bridge API methods.

HTML Components

Gets the user Jid

Gets the contact Jid

Gets the contact Name

Chat context Discovery context

Sends an event to Android to close the microapp

Chat context

Sends a chat message directly without putting the text on the compose bar of the chat screen

Chat context

Puts a text on the compose bar of the chat screen without sending the message

Chat context

Sends a location chat message

Chat context

Sends a media chat message (image, video, audio, file or contact)

Chat context Discovery context

Gets the user MSISDN

Chat context Discovery context

Gets the user country code in ISO-3166

Chat context Discovery context

Gets the user language code in ISO-639-1

Chat context

Gets if the user has accepted the permission to send a message

Chat context Discovery context

Gets the user location

Chat context Discovery context

Gets the user nickname and avatar

Chat context Discovery context

Gets the user presence

Chat context Discovery context

Takes a picture with the phone’s camera

Chat context Discovery context

Gets the Ayoba contacts of the user. Only the user’s contacts that are registered in Ayoba are returned. SMS contacts are excluded (contacts that aren’t registered in Ayoba)

Chat context Discovery context

Gets the device contacts of the user. On the name field on the response below, the contacts that are registered on ayoba will take their nickname and the other contacts will take the name saved on the device Contact's app

Chat context

Returns the last 50 messages in Json structure if user has accepted the permission "Conversation"; if not, returns "[]"

Chat context Discovery context

Allows the user to choose a file from the device filesystem and retrieves it

Chat context

Opens a chat conversation with a user using the user’s JID

Chat context Discovery context

Send a generic event to Firebase Analytics

Discovery context

Starts a payment transaction

Discovery context

AyobaUxOverlay

Discovery context

This callback is called when the Ayoba user accepts MicroApp's payment permissions, so the MicroApp can know which payment methods are enabled for the user.

Chat context Discovery context

Gets user carrier from Ayoba API

Chat context Discovery context

Gets user secured MSISDN from Ayoba API