Multiple native alerts

Using the following code on Android, “afterAlert” is not being called. Can’t figure out why…

[lua]

    function afterAlert(event)
      
    end

    function nextAlert(event)
        if event.index == 1 then
            native.showAlert(“Blah”, “Blah blah blah”, {“blah”, “blaaaah”, “BLAAAH”}, afterAlert)
        elseif event.index == 2 then
            system.openURL( “www.awebsite.com” )
        end
    end

    if 1 == 1 then
        native.showAlert(“Blah”, “More blah”, {“Yes!”, “No”}, nextAlert)
    end

[/lua]

odd it calls afteralert for me

add a frame delay.  It may be getting called and closed immediately.

odd it calls afteralert for me

add a frame delay.  It may be getting called and closed immediately.