Fetching Phone Number From SIM

In my project, we have a requirement for a phone number login. But we don’t want to show phone number input.
Instead, we want the user to show a popup of phone numbers according to SIM installed in user’s Android device.
But in capacitors, we don’t have any way to do that. Can you please help us to find a plugin for this.

The phone number is not stored in most SIM cards, so you can’t create something that works for every device.
You can create a plugin that uses this

Any example or demo project for how to create plugin by using this:

I am not very expert in creating plugins. So want some example for creating that.

Maybe this Capacitor plugin works for you: GitHub - jonz94/capacitor-sim: ⚡️ Capacitor plugin to get information from device's sim cards.

1 Like