- Jun 6, 2020
- 11,559
- 4,422
Hello team,
I have created my first chat websocket server using this
At PushService there is sticky service declaration that is obsolete, so i change it:
B4X:
which cause a notification that always persissts. If I don't set it and kill it from recent apps then no notification will come and all messages are lost.
So the problem is that all mainstream chat apps does not have a persistent notification in order to show notifications, so what is the problem?
I searched on forum and tried to implement solution from background gps example with same luck. Persistent notification or lost messages-notifications.
Moreover, if i kill it from recent apps and send many messages from other device to that one, server throws this error:
B4X:
I have created my first chat websocket server using this
برای دیدن لینک ها باید ثبت نام کنید
. After that i am trying this
برای دیدن لینک ها باید ثبت نام کنید
for android client.At PushService there is sticky service declaration that is obsolete, so i change it:
B4X:
Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_ALWAYS
which cause a notification that always persissts. If I don't set it and kill it from recent apps then no notification will come and all messages are lost.
So the problem is that all mainstream chat apps does not have a persistent notification in order to show notifications, so what is the problem?
I searched on forum and tried to implement solution from background gps example with same luck. Persistent notification or lost messages-notifications.
Moreover, if i kill it from recent apps and send many messages from other device to that one, server throws this error:
B4X:
java.lang.RuntimeException: java.lang.RuntimeException: java.sql.SQLException: An attempt by a client to...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید