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

bug: mobile phone number is empty on Android 12 #3

Closed
shivamHylo opened this issue Feb 23, 2023 · 8 comments · Fixed by #6
Closed

bug: mobile phone number is empty on Android 12 #3

shivamHylo opened this issue Feb 23, 2023 · 8 comments · Fixed by #6
Labels
bug Something isn't working

Comments

@shivamHylo
Copy link

shivamHylo commented Feb 23, 2023

i have installed this plugin but i am not getting mobile number in the result.

@shivamHylo shivamHylo changed the title Mobile key empty Mobile value empty Feb 24, 2023
@jonz94
Copy link
Owner

jonz94 commented Mar 1, 2023

Hi @shivamHylo,

Which OS are you testing the plugin on?
Currently, the plugin can only retrieve mobile numbers on Android devices running version 12 or lower.

For Android 13, some changes will be needed to the implementation to retrieve mobile numbers.
I plan to address this after Capacitor officially adds support for Android 13 with the release of Capacitor 5.

Regarding iOS, Apple does not allow developers to retrieve mobile numbers. You can find more information about this policy in the Apple Developer Forums (Reference: https://developer.apple.com/forums/thread/9171).
Therefore, if you are not able to retrieve mobile numbers on iOS devices, this is expected behavior.

@tarangshah19
Copy link

when you update for For Android 13,

@harshallcode
Copy link

Now that the capacitor 5 beta has been released, will you start working on Android 13 support?

@jonz94
Copy link
Owner

jonz94 commented Apr 10, 2023

Hi @tarangshah19 @harshall666

I've created a separate issue specifically for Capacitor 5 and Android 13 support (#4).

I'd like to suggest that we continue this discussion on there. Thank you!

@jonz94
Copy link
Owner

jonz94 commented Apr 10, 2023

Hi @shivamHylo, sorry for pinging you again.

Is your end result different from the following?

Currently, the plugin can only retrieve mobile numbers on Android devices running version 12 or lower.

For Android 13, some changes will be needed to the implementation to retrieve mobile numbers.

Regarding iOS, Apple does not allow developers to retrieve mobile numbers. You can find more information about this policy in the Apple Developer Forums (Reference: https://developer.apple.com/forums/thread/9171).
Therefore, if you are not able to retrieve mobile numbers on iOS devices, this is expected behavior.

I would appreciate it if you could provide me with more details, so that I can take a deeper look and address the issue.

@shivamHylo
Copy link
Author

shivamHylo commented Apr 11, 2023 via email

@harshallcode
Copy link

harshallcode commented Apr 11, 2023

For me, the plugin is working as expected till Android 12. In Android 13, the number property returns an empty string (""). Other properties(carrier name, etc) are returning data as expected.

Regards,
Harshal Patil

Update:- I haven't tested this plugin on Android 12 yet. I wrongfully assumed it should've worked on 12. It works fine till 11

@jonz94 jonz94 changed the title Mobile value empty bug: mobile phone number is empty on Android 12 Apr 11, 2023
@jonz94 jonz94 added the bug Something isn't working label Apr 11, 2023
@jonz94 jonz94 closed this as completed in #6 Apr 16, 2023
@jonz94
Copy link
Owner

jonz94 commented Apr 16, 2023

Hi there,

I just publish a new version.
Upgrade the plugin to @jonz94/capacitor-sim@1.0.5 should be able to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants