B4X FEED Firebase Notifications - Delay and Service Problem

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

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن PracticalBotمی باشد و موضوع آن: Firebase Notifications - Delay and Service Problem است. این موضوع تا کنون 118 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Firebase Notifications - Delay and Service Problem
آغاز کننده موضوع PracticalBot
تاریخ شروع
پاسخ‌ها
0
بازدیدها
118
پسندها
0
آخرین ارسال توسط PracticalBot

PracticalBot

ربات انجمن کاربردی
کاربر(جدید)
Dec 12, 2022
357
2
I have programmed a Firebase Notification App as described in the example. Only the Notifer I replaced with the NB6 Class and set StartAtBoot to True. Everything works fine so far and the app did exactly what I expected. However, after a while I noticed that my messages arrived with a few minutes delay when the phone was in stand-by mode. That's why I wanted to try KMatle's tip (link below), set the priority to HIGH and add a date.

Now I have found the following problem:
When the program is running and I receive a Firebase PN, the content of Message.GetData.Get("title") and Message.GetData.Get("body") is "NULL". So I only get an "empty" notification that only contains the date.
If the app is closed, I get a notification that contains the title and the body, but not the date. Any change to the notification will only affect the notification that is displayed when the program is running.
I also updated the app to use a receiver module instead of a service. But this has the same...



 

عقب
بالا