andreamainella98 / phone_state

Flutter plugin
BSD 3-Clause "New" or "Revised" License
9 stars 16 forks source link

[FEATURE] Recover phone number #14

Closed andreamainella98 closed 1 year ago

andreamainella98 commented 1 year ago

FEATURE

19119294973 commented 1 year ago

I want to get not only the call status, but also the call information number

andreamainella98 commented 1 year ago

Completed!

The phone number is only obtainable on Android for the moment :(

PR: https://github.com/andreamainella98/phone_state/pull/17

SOG-gen commented 1 year ago

Does this work on android 10 upward.

Because according to android docs, This constant was deprecated in API level 29. Companion apps for wearable devices should use the [InCallService](https://developer.android.com/reference/android/telecom/InCallService) API to retrieve the phone number for calls instead. Apps performing call screening should use the [CallScreeningService](https://developer.android.com/reference/android/telecom/CallScreeningService) API instead.

https://developer.android.com/reference/android/telephony/TelephonyManager#EXTRA_INCOMING_NUMBER

Will it work on API level 29 and higher

berkekbgz commented 1 year ago

Does this work on android 10 upward.

Because according to android docs, This constant was deprecated in API level 29. Companion apps for wearable devices should use the [InCallService](https://developer.android.com/reference/android/telecom/InCallService) API to retrieve the phone number for calls instead. Apps performing call screening should use the [CallScreeningService](https://developer.android.com/reference/android/telecom/CallScreeningService) API instead.

https://developer.android.com/reference/android/telephony/TelephonyManager#EXTRA_INCOMING_NUMBER

Will it work on API level 29 and higher

It is working on my Android 11 (level 30).

But using CallScreeningService (if im not missing anything) not working if the application is not setted as dialer application under the devices below level 29. Source.

SOG-gen commented 1 year ago

Does this work on android 10 upward. Because according to android docs, This constant was deprecated in API level 29. Companion apps for wearable devices should use the [InCallService](https://developer.android.com/reference/android/telecom/InCallService) API to retrieve the phone number for calls instead. Apps performing call screening should use the [CallScreeningService](https://developer.android.com/reference/android/telecom/CallScreeningService) API instead. https://developer.android.com/reference/android/telephony/TelephonyManager#EXTRA_INCOMING_NUMBER Will it work on API level 29 and higher

It is working on my Android 11 (level 30).

But using CallScreeningService (if im not missing anything) not working if the application is not setted as dialer application under the devices below level 29. Source.

Yes, that true, am just wondering what will happen in other higher android versions as we proceed,since this https://developer.android.com/reference/android/telephony/TelephonyManager#EXTRA_INCOMING_NUMBER has already been depreciated

SOG-web commented 1 year ago

Please just wanted to ask

Do I see the incoming phone number on iOS also ?