I am searching for solution:
When I click on icon in powerapps canvas app, it will call REST API, api will create kml file and Google Earth should launch with generated kml file.
Currently I am doing following steps
- created canvas app in power apps with google earth icon.
- on click of icon its calling REST call with request body, based on input generating KML file
- putting kml file in /var/tmp folder.
- if icon is bind with Launch("gearth://http://server:7474/assets/Google.kml"), its launching google earth with kml file, which I kept in resource folder for testing purpose.
Problem: I am not able to put kml file in resource folder by java program. I searched and found resource folder is read only.
Is there any way we can access file in /var/tmp folder? Or can I do file creation/download in powerapps, upon getting response from REST call.