Version: *1.7.7
Frequency: /Consistently
Severity: *Low
(Low - quality of life, workflow optimization, rare enough to not impact production, etc…
High - critical but workarounds are available, important feature not working as expected, frequent enough to impact production
Blocker - prevents from working on the project, prevents from releasing the product)
Marketplace package name: if applicable
Context: What package? When editing or mounted from Community? In main menu or in flight? etc…
Similar MSFS 2020 issue: insert url here if applicable
Bug description:
As more and more developers make apps for the EFB, we get into a potential issue like we did with XML - being overwritten. Well, not overwritten now, but if developers do not have a compatibleAircraftModels function in their templateApp then you get an app in every aircraft that shows an annoying message that it’s not compatible, rather than just greyed out as the js/tsx comments show.
/**
* Optional method
* Allows to specify an array of compatible ATC MODELS.
* Your app will be visible but greyed out if the aircraft is not compatible.
* if undefined or method not implemented, the app will be visible for all aircrafts.
* @returns string[] | undefined
*/
public get compatibleAircraftModels(): string[] | undefined {
return undefined;
}
resulting tsx
/**
* Aircraft models list compatible with the App. If not defined, the App is compatible with all aircraft models.
* example: ['Cabri G2', 'H125']
* @returns a list of aircraft models compatible with the App or undefined
*/
get compatibleAircraftModels() {
return void 0;
}
So all you devs out there add the list to your TemplateApp
aircraft.cfg
[general]
atc_type = "Cabri"
atc_model = "Cabri G2"
SDK docs should add a recommendation that this function be properly set. Maybe an enhancement that the app not show at all if not compatible. ( I know debug … why does my app not show - well it defaults to that if you don’t add a proper compatibleAircraftModels function)
Repro steps:
Attachments:
Private attachments: Send a PM to @PrivateContent with the link to this topic and the link to download your content