its already one itoo,
am just using two screens, one is general screen and one is private screen for drivers only, the general screen notification is working normally but the private screen notifications isn't working
It might be just because of that
Try to put all event handlers into Screen1
How does the event handler bgTimer look like?
@Kumaraswamy how does itoo know where (on which screen) to find the event handler for background processing? In the itooX framework there is the property ReferenceScreen, but that property does not exist in itoo itself?
@mustafaalbasel What did you find out after debugging your project as mentioned earlier?
Add debug statements... use Notifier.LogInfo to log something and use logcat to check
Taifun
Can you show me an example how debugging my project please?
as i didn't get it, for trying the notifications am downloading the apk file each time changes to try
the issue for me by trying isn't in two screens as i discounted the general screen and trying the private screen only to make the notifications working for drivers only and not working for users but didn't work!
As previously provided for you:
Hi, the reference screen is the screen in which the CreateProcess has been called.
This is an example
You add that block into your bgTimer event handler at the beginning
Then use logcat to check, if the event got triggered
you will find tag Notifier and the text 'start' in the log
You can log everything which might be interesting
Also you can check for errors there
Btw
Still no answer from you up to now
Taifun
this is the bg timer as you requested
How do you start the clock in the background?
Taifun
its normally working like that in the background, the only issue is that i wanna show the notifications for specific users like drivers only not customers as you know i tried many things but still working for all users and this is wrong
only create the process if the current user is a driver
you had it correctly earlier
Taifun
hola, disculpen la consulta pero he probado la extensiones y los felicito, estoy usando iToo y melon + firebase, y cuando la pruebo anda muy bien, pero a los segundos de mandar la notificación me llega una notificación la cual no la puedo sacar y queda permanente, solo se borra si desinstalo la app.
esta es la notificacion y mis blockes. que solucion tendra?
This method will show a fixed notification while the process is running.
Yes, a foreground process must display a persistent notification. For newer devices starting from Ansroid 14 this can be dismissed. Use the StopProcess method from itoo to end the foreground process which then also removes the notification
Taifun
gracias, disculpa la molestia, en donde me aconsejas que ponga stopProcess para q sea automático según mis bloques?
When do you like to stop your processing in the background? On button click? If yes, put the StopProcess method into a button click event
Taifun
hola nuevamente, incluí un botón para probar el stopProcess, y la notificación fija se fue, pero cuando hago un cambio en firebase ya no me llegan las notificaciones, deja de funcionar el segundo plano. eso quiere decir q si otro usuario manda una notificacion y la app esta cerrada ya no le llega a nadie q alla hecho el stopProcess. que puedo hacer para que me sigan llegando las notificaciones y sin q me quede la notificacion fija?
If you want to keep checking in the background your database, then do not stop the process
You will still see the notification, which can get dismissed for newer Android versions
Whkch Android version are yoi using for your tests?
Taifun
Uso un motog32 con android 13.
Entonces solo a las versiones debajo de A 13 le seguirá persistiendo el mensaje de error y a las nuevas no?