> I couldn't find any documentation on these formats, that is why I've kept the android one lenient and put at least 100 chars instead of a fixed number

Ok, that's fine. Do you mind adding a bit of documentation around these patterns ? I fear a bit that this might be a thing to explode in the (near) future (as Google/Apple are totally random) 

thanks!