The other topic about cancelling notification is closed and no one can reply. My notification cancellation works (especially remote notification as I use them and cancel them too). For this case it was tested and used on several devices like Android 4, Android 6, and 9.
Local and remote notification on my android device is cleared. What android device are you using ?
local object = display.newText( "Clear Notifications", display.contentCenterX, display.contentCenterY, native.systemFont, 25 ) local function onObjectTouch( event ) if ( event.phase == "began" ) then -- print( "Touch event began on: " .. event.target.id ) elseif ( event.phase == "ended" ) then -- print( "Touch event ended on: " .. event.target.id ) print( 'Cancelling Notifications...') g\_notifications.cancelNotification() end return true end object:addEventListener( "touch", onObjectTouch )