react-native-send-intent icon indicating copy to clipboard operation
react-native-send-intent copied to clipboard

disable skype and other apps than the dialler

Open adambene opened this issue 7 years ago • 5 comments

How to disable other apps than the dialler?

adambene avatar Jun 27 '17 13:06 adambene

I think that is not possibile, since the Android OS offer the app-options to you, not the app.

lucasferreira avatar Jul 10 '17 21:07 lucasferreira

Well, you can do it like this: sendIntent.setPackage("com.android.server.telecom")

We had a PR for this but was closed without merging: https://github.com/benestudio/react-native-send-intent/commit/78b4222f1d03fb0bbb4321ce3f541d3be605ecf0

What do you think?

adambene avatar Jul 11 '17 11:07 adambene

Hi @adambene

I can't find your PR in our github history. But do you think that is possible to to enable this sendIntent.setPackage("com.android.server.telecom") command line with some sort of argumment in methods?

Something like this..

public void sendPhoneDial(String phoneNumberString, **bool onlyDial**) {
 ...

I think that some users want to decide how to deal with your calls, something like using skype or other voip solutions. But with a flag-arguments you and others developers can for the dial behavior if you want.

What do you think?

lucasferreira avatar Jul 12 '17 13:07 lucasferreira

Looks good. Does this solution have any compatibility problems with any of the Android versions?

adambene avatar Jul 12 '17 13:07 adambene

Hi, I am looking for the opposite, how to display apps for phone number (e.g. whatsapp, dialler... etc) ? also, if an app is not installed, how to open it on browser ? one last thing, when I want to open an app (e.g. linkedin) how to pass the url for their profile so it redirects to profile when app opens !

yasir-netlinks avatar Dec 25 '17 07:12 yasir-netlinks