9

Can we start a new video call via Google Duo via intent? Can we launch into any specific screen within the app?

We currently have support for launching Hangouts from our app, and we would like to add Duo support as well.

JSON C11
  • 11,272
  • 7
  • 78
  • 65
marmor
  • 27,641
  • 11
  • 107
  • 150
  • 1
    did you got anything for above question – Vishwanath.M Dec 21 '16 at 07:32
  • 1
    I wish someone would answer this. Also, could you tell me how you went about launching Hangouts from your app? I'm having the hardest time figuring out what data to send in the intent so that Hangouts will call a certain contact. Any help is appreciated. – Daniel Rust Jan 16 '17 at 02:15
  • 1
    @RustWebDev we're actually not initiating a call, just opening the hangouts chat screen with a specific contact, we're using a method similar to this: http://stackoverflow.com/a/38674136/819355, also see this: http://stackoverflow.com/a/35983348/819355 – marmor Jan 16 '17 at 07:08
  • @marmor I'm curious, I want to build hangouts integration but can't find any recent examples - do you have something that's still working? – Kristopher Noronha Mar 21 '20 at 14:11

2 Answers2

1

Found this in the truecaller source code. Can't get to work, but hope it helps. I'm using Kotlin.

val I = Intent("com.google.android.apps.tachyon.action.CALL")
i.'package' = "com.google.android.apps.tachyon"
i.data = Uri.parse("tel: $phone") // phone is the phone number your to a function
i.putExtra(com.google.android.apps.tachyon.extra.IS_AUDIO_ONLY, false)
startActivity(i)
  • interesting, thanks, looks like there's a typo in the first line, probably should be "tachyon.action.CALL" instead of with 'tachyo' – marmor Dec 30 '17 at 15:41
  • Is `com.google.android.apps.tachyon.extra.IS_AUDIO_ONLY` a string? Meaning it's supposed to be `"com.google.android.apps.tachyon.extra.IS_AUDIO_ONLY"` ? Or something else? – android developer Oct 05 '21 at 13:24
0

Use this :-

Intent intent = getPackageManager().getLaunchIntentForPackage("com.google.android.apps.tachyon");
startActivity(intent);
Alexan
  • 8,165
  • 14
  • 74
  • 101
Sachin Singh
  • 149
  • 1
  • 7
  • 1
    thanks, but i'm not looking into just opening the Google Duo app, i want deep linking into it, e.g. opening the conversation screen with a specific contact. We have such integration with Hangouts, Whatsapp, Facebook and many other apps, but not currently for Duo – marmor May 28 '17 at 08:13
  • did you find the answer? – Anwar Kamal Apr 23 '18 at 13:55