type Platform = "Web" | "Native_mobile" | "Hybrid_mobile" ; returns { Promise . < "NanoflowCommons.Platform.Web" | "NanoflowCommons.Platform.Native_mobile" | "NanoflowCommons.Platform.Hybrid_mobile" > } export async function GetPlatform ( ) { if ( window && window . cordova ) { return Promise . resolve ( "Hybrid_mobile" ) ; } else if ( navigator && navigator . product === "ReactNative" ) { return Promise . resolve ( "Native_mobile" ) ; } else { return Promise . resolve ( "Web" ) ; } }