B4X FEED Notification persists

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Notification persists است. این موضوع تا کنون 35 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Notification persists
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
35
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hello team,

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...



 

عقب
بالا