MichaelRocks/libphonenumber-android

Oman number starting with 78 is not supported.

sreejithbnaick opened this issue · 1 comments

Lib version: 8.12.24
Region: OM (Oman)
Country code: +968

Wikipedia shows Oman has phone number starting with 78xxx (Ref: https://en.wikipedia.org/wiki/Telephone_numbers_in_Oman)

Sample number: +968 7890 4794 (From this website: https://phonegenerator.net/oman-phone-number)

phno = phoneNumberUtil.parse("+96878904794", null)
phno = phoneNumberUtil.parse("+96878904794", "OM")

isValidNumber is giving false:

phoneNumberUtil.isValidNumber(phno)

Working for numbers starting with 79xx, 90xx, but not for 78xx

Is anything missing ? How to fix this ?

(BTW: Thanks for this wonderful library)

Looking at other similar issues, I believe this is metadata issue and it wont be fixed in this repo and I need to report it in Google's repo. So marking it as closed. Thanks