PWA's are what you're thinking of. They are platform agnostic apps.
The thing holding them back is apples deliberate crippling of them to make them hard to install, slow, buggy, and not having basic platform features.
I believe Apple is deliberately doing that because if they supported PWA's properly, they'd loose all vendor lock in.