Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Add a plugin to pass phone calls #7755

Closed
3 tasks done
JulienLecoq opened this issue Nov 8, 2024 · 1 comment
Closed
3 tasks done

[Feature]: Add a plugin to pass phone calls #7755

JulienLecoq opened this issue Nov 8, 2024 · 1 comment
Labels

Comments

@JulienLecoq
Copy link

Description

Add a plugin to pass phone calls

Platforms

  • iOS
  • Android
  • Web

Request or proposed solution

Capacitor currently lacks a plugin for making phone calls. Therefore, it’s not possible to initiate a phone call by long-pressing a phone number in an ion-item (an Ionic component), for example. I need this for my mobile application.

I don't know if this would be possible to implement on Web since long presses are not detected as user input, shitty web... as usual, but I assume this should be possible on iOS/Android since I don't think there is the same limitation.

Alternatives

There is this community plugin: https://github.com/mantosh59/call-number

But it does not seem to be maintained and does not seem to work.

Additional Information

No response

@JulienLecoq JulienLecoq changed the title [Feature]: [Feature]: Add a plugin to pass phone calls Nov 8, 2024
@jcesarmobile
Copy link
Member

You should be able to use anchor tags (a) to call to numbers, i.e. <a href="tel:666666666">666666666</a>. Not on long press though, a simple click will show the options to call or open phone app with the number dialled depending on the OS and device.

Also app-launcher plugin seems to work for calling too, i.e. AppLauncher.openUrl({ url:'tel:666666666' });.

If none of those is acceptable for your use case you could create a proposal on capacitor-community proposals repository

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants