I’m trying to get a copy of a db from a user, so I write this simple code. It’s working just fine on iOS, but on Android it crashes the app and shows a dialog box “Unfortunately, AppName has stopped”.
Any ideas?
Could it be the MIME type? I’ve tried type=“application” and type=“application/octet-stream”, but I’m getting the same result
local emailOptions = { subject = "FL Debugging", body = "The file is attached", isBodyHtml = false, attachment = { {baseDir=system.DocumentsDirectory,filename="FL.db", type="application/octet-stream"}, }, } native.showPopup("mail", emailOptions)