I want to place a call programmatically from my App to Viber. I know this question asked many times in SO. but as a matter of fact, none of them works now (in the newer version).
I've tried this SO post. But as mentioned in the answer. the user has to go through two steps to make a call.
I know it is possible to place a call by just one click from app. (Reference: this play store app is successfully placing a call from their app to viber.)
Currently, i'm using this
String sphone = "+xxxxxxxxxx";
Uri uri = Uri.parse("tel:" + Uri.encode(sphone));
Intent intent = new Intent("android.intent.action.VIEW");
intent.setClassName("com.viber.voip", "com.viber.voip.WelcomeActivity");
intent.setData(uri);
startActivity(intent);
But as I mentioned user have to go through two steps to make a call. I've tried all solutions and also read viber docs but can't find anything. If anyone aware of how to do it in the newer version would be helpful to many developers.