Notify

47 views
Skip to first unread message

Onivaldo Miquelino

unread,
Jan 23, 2023, 8:07:12 PM1/23/23
to DroidScript
Após a última atualização ao enviar uma notificação a seguinte mensagem é retornada Script Error: Cannot read properties of null (reading 'SetMessage'). Gostaria de saber como posso solicionar o problema.

function OnStart()
{    
    app.ShowPopup( "Sending notification" );
    notify = app.CreateNotification();
    notify.SetMessage( "Ticker", "Title", "Text" );
    notify.Notify( "testID" );
    setTimeout( cancel, 5000 );
}

function cancel()
{
    notify.Cancel( "testID" );
    app.ShowPopup( "Notification cancelled" );
}

Screenshot_20221222_130816.jpg

/*
os=33
Apk Builder version 2.57
tablet=false
model=SM-A536E
isChrome=false
isTV=false
DroidScript=2.57
Storage access=Scoped
screen width=1080
screen height=2186
screen density=420
display width=1080
display height=2187
internal folder=/sdcard
external folder=/storage/3896-A722
int free space=67.12137
ext free space=7.459442
memory=7,751,725,056
premium=true
country code=BR
country=Brasil
language code=pt
language=português
wifi=192.168.0.59
userAgent='Mozilla/5.0 (Linux; Android 13; SM-A536E Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/108.0.5359.128 Mobile Safa


Reply all
Reply to author
Forward
0 new messages