The following is the code that is working for Android & iOS:
FilePickerFileType customFileType =
new FilePickerFileType(new Dictionary<DevicePlatform, IEnumerable<string>>
{
{ DevicePlatform.iOS, new[] { "public.text" } },
{ DevicePlatform.Android, new[] { "text/plain" } },
});
For iOS, first I tried the following:
{ DevicePlatform.iOS, new[] { (string)MobileCoreServices.UTType.Text } },
Then checked the value set to customFileType. That is "public.text". Also "Text" covers all text files including .tab and .csv though separate enumerations are available for those types.
Still I have not yet tried for UWP project. That will take some more time for me.