Email popup (native.showPopup) Fallback if no email accounts

1 reply [Last post]
marksumarksu
User offline. Last seen 1 day 6 min ago. Offline
Joined: 10 Jan 2011

Hi!

I love the new native.showPopup feature for composing emails. However, while testing it on actual devices I ran into some trouble: On some devices, nothing happened when activating the email pop up.

Turns out, these devices did not have any email accounts added or activated in iOS - meaning, it had nothing to send the email from.

It would be good if there was some kind of fallback or just warning message in these cases, like illustrated here perhaps:

1
2
3
4
5
6
7
8
9
local function fallbackFunction()
        print("No email accounts found!")
end 
local options =
        { 
          fallback = fallbackFunction
        }
 
native.showPopup("mail", options)

I apologize if this is the wrong forum for this, but I though it was a pretty crucial sub-feature to implement, to guarantee a smooth working feature. To my users, it looks like a bug that the "email"-button does nothing.

For the record I tested this on iphones and ipads with version 5.0.1.

Thanks

Replies

ewing
User offline. Last seen 2 hours 49 min ago. Offline
Staff
Joined: 13 Jul 2010

Please file a bug report/feature request. Some kind of 'canSupportEmail' API should have been provided at the get-go.

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.