Android Local Notification, but no Notification happens

Hi,

my local notifications work fine on iOS

on Android i dont get one.

I see in the LogCat that the Notification Listened gets the Event, but nothing is shown

02-02 18:15:00.924: I/Corona(7529): [Lua::RuntimeDispatchEvent()] WARNING: This function is deprecated. Use Lua::DispatchRuntimeEvent() instead.

02-02 18:15:00.924: I/Corona(7529): Notification Listener event:

02-02 18:15:00.924: I/Corona(7529):    type(local)

02-02 18:15:00.924: I/Corona(7529):    name(notification)

02-02 18:15:00.924: I/Corona(7529):    custom(table: 0x79215da0)

02-02 18:15:00.924: I/Corona(7529):    alert(Ovulation starts in  … #50)

02-02 18:15:00.924: I/Corona(7529):    applicationState(active)

02-02 18:15:00.924: I/Corona(7529): ---------

02-02 18:15:00.924: I/Corona(7529): Notification fired: getProperty nil, event.badge nil

02-02 18:15:00.929: I/Corona(7529): custom.msg = bar, active

02-02 18:15:00.929: I/Corona(7529): event.custom.msg = bar / state:active

02-02 18:15:21.674: I/Corona(7529): app suspend

My Options are like

notf_options = {

       alert = “Ovulations starts in 2 Days”,

       badge = 2,

       sound = “alert_45.caf”,

       custom = { msg = “bar” }

    }

also on Android I end the app with:  native.requestExit()

as mentioned it works fine on iOS

hope u can help

Do you see any difference in behaviour if the app is open, close or suspended?

I had a very strange bug (it works now)

I called twice my notification via a function, but in between was a 

    native.setProperty( “applicationIconBadgeNumber”,amount) 

anyhow, after that always the second notification came fired, but the first came lost, why ever,

it worked on ios, but not on android.

very strange and still dont know why

Do you see any difference in behaviour if the app is open, close or suspended?

I had a very strange bug (it works now)

I called twice my notification via a function, but in between was a 

    native.setProperty( “applicationIconBadgeNumber”,amount) 

anyhow, after that always the second notification came fired, but the first came lost, why ever,

it worked on ios, but not on android.

very strange and still dont know why

1 Like