Hi,
I’m trying to open the mail app from my game and it’s not showing up. It works well on iOS (and in the simulator) but not on Android.
My code is this:
local body = "Target App Store: " .. device.targetAppStore body = body .. "\nPlatform: " .. device.platform body = body .. "\nPlatform Version: " .. system.getInfo("platformVersion") body = body .. "\nApp Version: " .. system.getInfo("appVersionString") body = body .. "\n\nUser Comments: " local done = native.showPopup("mail", { to = "contact@squadventure.com", subject = "Feedback", body = body }) if not done then print("Function native.showPopup is not supported.") native.showAlert(game.info.getGameName(), i18n.\_"Ratings.Feedback") --system.openURL("mailto:contact@squadventure.com?subject=Feedback" .. "&body=" .. urlencode(body)) end
The showPopup function returns true, because it doesn’t go inside the subsequent if-block. I don’t see any errors in the log. By the way, using openURL doesn’t work either.
Has anyone experienced this? Do I need to add anything to permissions for this to work?
Thanks,
George
edit: I’m using v2016.2861.