System.perspective.download() in an Android Tablet

When I use the command: system.perspective.download() in the Ignition Designer, the save prompt appears with no issues (I have it linked to a button).

But when I try this on the Ignition Perspective App in my Samsung Tablet, it does nothing.
I checked if maybe it went to My Files app, but nothing was there either.

I couldn't find more information regarding this online, so I'm a bit confused on how to make the command work on the mobile app.

Hopefully this will help: [PM-162] IOS and system.perspective.download - #3 by Ken_Pace

Since in my case I want to download is an Excel file, i would think that the solution doesn't apply,
I used the:
contentType = MimeTypeUtils.determineMimeType(exportName)
line of code,
and included it to my download:

system.perspective.download(filename = exportName, data = excel, contentType = contentType)

but the results are the same unfortunately.

Can you elaborate on what results you're seeing? Anything in the UI? Also, is this with v1.0.8 of the Ignition Perspective app? For what it's worth, the code in that linked message works for me on a Pixel 5 running Android 14.

I do have v1.08 of Ignition Perspective app.

My approach is most likely wrong, but here is what I tested:

excel = system.dataset.toExcel(True, sheets, nullsEmpty=True, sheetNames=sheetNames)
fileName = excel
target = File(fileName)

data = system.file.readFileAsBytes(fileName)
fileName = target.getName()
contentType = MimeTypeUtils.determineMimeType(fileName)
system.perspective.download(filename = fileName, data = data, contentType = contentType)

In this case, excel is my data that I want to download.

It returns this in Ignition Perspective:
image

It should be returning a save prompt, it did before using the designer, but my problem is that since I want to download an .xlsx file, I may need something else to do this.

Take a look again at the example I posted and see if you can use that as a starting point. The excel-file part shouldn't matter, nor should being on mobile as I modified that example and it was able to download an xlsx file just fine. Also, system.dataset.toExcel returns a byte array, and the TypeError exception is telling you which line it doesn't like.