Open MoeHamdan opened 1 year ago
+1
+1
+1
+1
+1
+1, any new on this? Any lower version of the plugin works on Android 10?
No it will not be supported anymore because Android policy blocked the access to that content
I have the same issue, someone have a solution ?
Hello
I am getting this error for Android 10 and lower.
java.lang.NoSuchMethodError: No virtual method getSubscriptionId()I in class Landroid/telephony/TelephonyManager; or its super classes (declaration of 'android.telephony.TelephonyManager' appears in /system/framework/framework.jar!classes2.dex).
Also why did not you set the version to 3 upon doing the breaking changes?
Thanks,
should be fixed on the latest commit in main
@onghuisheng when do you plan to publish it to pub.dev?
@Zfinix
Also, the values in telephonyInfo are always empty on android 10. Works for 13 though
List (1 item)
[0]:
TelephonyInfo (TelephonyInfo(networkCountryIso: , mobileCountryCode: , mobileNetworkCode: , displayName: , simState: , isoCountryCode: , cellId: CellId(cid: 0, lac: 0), phoneNumber: , carrierName: , subscriptionId: 0, networkGeneration: , radioType: , networkOperatorName: ))
carrierName: ""
cellId:
CellId (CellId(cid: 0, lac: 0))
displayName: ""
isoCountryCode:""
mobileCountryCode:""
mobileNetworkCode:""
networkCountryIso:""
networkGeneration:""
networkOperatorName:""
phoneNumber:""
radioType:""
simState:""
subscriptionId:0
hashCode:1
runtimeType:
edit: Ended up not using this package
Hey guys, i have forked and adjusted that bugs and handled the library for android 6.0 and higher. I have ignored the cellId
field, but the library worked for all android devices on my tests. Feel free to take a look.
Hello
I am getting this error for Android 10 and lower.
java.lang.NoSuchMethodError: No virtual method getSubscriptionId()I in class Landroid/telephony/TelephonyManager; or its super classes (declaration of 'android.telephony.TelephonyManager' appears in /system/framework/framework.jar!classes2.dex).
Also why did not you set the version to 3 upon doing the breaking changes?
Thanks,