Hi,
Thank you for taking the time to improve libphonenumber!
As per our test results dialling MX phone numbers in E.164 format always works. E.164 format for MX mobile numbers: +<Country_Code><1><National_Subscriber_Number>. International prefix 1 can only be present in MX mobile numbers that are in E.164 format. So removing just country code does not change the format to national format.
For your use case i.e formatting MX number to send SMS, we suggest you to use PhoneNumberUtil.formatNumberForMobileDialing() API as it results number in E.164 format for all MX numbers.
Presently library is not able to detect the right phone number type MX phone numbers. We aren't classifying beyond mobile token(prefix 1 before the number) absence/presence at the moment. See our FAQ for more details.
We will be able to return right phone number type (fixed-line/mobile) only after we update our metadata based on this complete official numbering plan. This can be effectively done after we change metadata to new format. We have plans to do this by Q3 2018.
Thanks & Regards,
Aravind
--
You received this message because you are subscribed to the Google Groups "libphonenumber-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libphonenumber-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.