Search code examples
bixbybixbystudio

Phone Call Functionality for Bixby Capsule


Does anyone know or have a clue on implementing a phone call functionality in a Bixby capsule. That is for example, like from the Yelp capsule, a user presses a 'Call Business' button at the bottom and the capsule initiates a phone call with the business.

I have extensively been looking at the Developer's Guide (Contact library):

https://bixbydevelopers.com/dev/docs/dev-guide/developers/library.contact

But it seems like they don't have an action call for a phone call.

compound-card {
          content {
            single-line {
              image {
                url("../assets/ic_btn_call.png")
              }
              spacer
              text {
                value ("Call #{value(phoneNumber)}")
                style(Title_XS)
              }
            }
          }
          on-click {
            intent {
              // goal : Call action not implemented
              value {
                $expr (phoneNumber)
              }
            }
          }
        }

Solution

  • An alternative solution:

    Although it is not documented, use app-launch to take advantage of Android's built-in href

    1. add the following code in your view file
      app-launch {
        payload-uri ("tel: 1-800-726-7864") // samsung number
      }
    
    1. do a private submission and load revision number to your phone.
    2. get to the view with app-launch, and you will be re-direct to phone-call with the number.
    3. you need to confirm the call by press the green dial icon.