Hi,
That sounds like the correct behavior.
Looking at the code I don't see anywhere where we keep "state" of what was 
processed. I think this is just iOS that isn't sending the state if it was 
already sent. So I'm not sure if there's something we can do about it.
On Monday, June 14, 2021 at 10:48:32 PM UTC+3 Ivan wrote:

> Hi, 
> yes, in that case it is invoked properly. 
>
>
> Dátum: piatok 11. júna 2021, čas: 4:34:35 UTC+2, odosielateľ: Shai Almog
>
>> Hi,
>> if you kill the app and then click the notification will the 
>> localNotificationReceived be invoked?
>>
>> On Friday, June 11, 2021 at 12:06:35 AM UTC+3 Ivan wrote:
>>
>>> Hi guys,
>>>
>>> I'm using local notifications in my application. On android everything 
>>> works well.
>>> I have troubles with iOS. When the application is active and 
>>> notification is scheduled and sent it's immediately received 
>>> (localNotificationReceived is called). 
>>>
>>> I tried to use LocalNotification.setForeground(true) and to trap the 
>>> automatic call of localNotificationReceived. In this case the notification 
>>> is displayed in notification area but clicking on it does not call  
>>> localNotificationReceived anymore (because it was received already, 
>>> probably)
>>>
>>> Is it possible to disable automatic call of localNotificationReceived() 
>>> in iOS when application is active? 
>>>
>>> thanks
>>>
>>> Ivan
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/fe2be18f-eaa6-4abc-baa4-f97f42c351d3n%40googlegroups.com.

Reply via email to