hi.
can someone try this code in your devices to check its a bug o not? (problem is in system.openURL)
local widget = require( "widget" ) local function handleButtonEvent( event ) if ( "ended" == event.phase ) then system.openURL( "tel:123-456-7890" ) end end local button1 = widget.newButton { left = 100, top = 200, id = "button1", label = "Default", onEvent = handleButtonEvent }
my app crashes when i cancel the phonecall. i can’t do nothing anymore. tested on nexus 7 2013 with android 5.1.1.
in build.setting:
settings = { android = { usesPermissions = { "android.permission.CALL\_PHONE", }, }, }