No, it doesn't have to work with all future versions. The app needs to work with all older versions of the car. I the app detects a newer, incompatible version of car firmware, it should inform the user than an app update is required and the user can imply go to the app store/play store and update. Unlike the car, apps can be updated on-demand and in seconds.
All that said, I have the latest firmware Tesla deployed to my car. That firmware says I can use a feature as long as I have app version 3.8. First, there was no 3.8 available in the playstore. Then, it showed up, but the feature only pretends to control the heated seats/wheel - no obviously never tested in a real car, at least whatever hardware version they sold me 3 years ago.