Mobile Number verification for dual SIM devices in Android

走远了吗. 提交于 2019-12-05 18:16:28

i think

https://github.com/cognalys/cogdemo will be helpful

Because its a new way of verifying mobile number without fee . SMS method is a traditional method.

Aamir Shahzad
private void isDualSimOrNot(){
SimNoInfo telephonyInfo = SimNoInfo.getInstance(this);

String imeiSIM1 = telephonyInfo.getImeiSIM1();
String imeiSIM2 = telephonyInfo.getImeiSIM2();

boolean isSIM1Ready = telephonyInfo.isSIM1Ready();
boolean isSIM2Ready = telephonyInfo.isSIM2Ready();

boolean isDualSIM = telephonyInfo.isDualSIM();
Log.i("Dual = "," IME1 : " + imeiSIM1 + "\n" +
        " IME2 : " + imeiSIM2 + "\n" +
        " IS DUAL SIM : " + isDualSIM + "\n" +
        " IS SIM1 READY : " + isSIM1Ready + "\n" +
        " IS SIM2 READY : " + isSIM2Ready + "\n");
}

For further implementation go through this link Android How to get Phone number from the Dual sim phone

I would avoid doing it that way since it only works on Android. Plus, what number will you be sending it to? If you send it from the SIM card, then what will you do when the SIM does not return any data? - and If you send it to the phone number that the user entered, when they find out it came out of their own phone, you will need to add a big disclaimer about SMS charges they might incur.

You can alternatively use RingCaptcha - a new service that helps you onboard verified users into your apps in seconds via SMS. Integration is a breeze with all the available plugins for web, APIs, and SDKs of all flavours.

[Disclaimer: I'm part of the team behind RingCaptcha]

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!