Reputation: 1
So, I was thinking of making a capsule for launching a specific app in the phone. Now apps can be called by their commonly spoken names. For eg. Instagram can be called "insta", Facebook can be called "fb". So the launcher capsule should properly map the correct app with its commonly spoken name. Now the catch here is that there can be many apps starting from same prefix. For eg Instagram, Instamart, Instagram Lite all start with "insta", so our capsule much define certain conditions such that it opens a specific app, maybe based on previous user search history. Or else it should display a list of apps to the user.
Upvotes: 0
Views: 171
Reputation: 1501
app-launch can launch an app installed on device with Android deep-link URI. Please see more in https://bixbydevelopers.com/dev/docs/reference/type/result-view.app-launch
However, I'd like to share a few thoughts:
Hmm, a final note, seems Bixby already learned fb. The utterance "launch fb" works... LOL
Upvotes: 1
Reputation: 153
I have done a similar project. For now I have launched an app via the URI, check it out.
Part of it is for debugging purposes.
result-view {
match {
RetrievedItem (this) {
from-output: SearchSong (output)
}
}
message("") // override empty string to avoid displaying default result dialog. If you want to debug, you can print `#{value(this.uri)}` here instead
app-launch {
payload-uri ("#{value(this)}")
}
render{
layout{
section{
content{
paragraph{
value("URI: #{value(this)}")
}
}
}
}
}
}
Upvotes: 1