Huawei Push kit notification message group count related - huawei-mobile-services

In the guide of HMS Push notification, it is mentioned that an app has one message group, which contains a maximum of 24 notification messages. Extra notification messages will be discarded.
Does this mean that 25th message onwards will be discarded and never delivered?
Link: https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/push-introduction

Please NOTE: here the message group is for one app on the device(phone, pad, etc). When the quantity greater than the maximum limit, the latter messages onwards will be discarded though it delivered to your devices.
The link used in the question is deprecated. Pls refer to the latest guide:
For notification messages, note the following items:
• An app has one message group with the upper limit. If the number of messages exceeds the upper limit, extra messages will be discarded (the upper limit is 24 for EMUI 10 and 11, and 49 for EMUI 9).
• If a message group in the notification panel is collapsed, two messages in the message group and the number of remaining messages are displayed by default.
• If a message group is expanded, a maximum of eight messages can be displayed.

Related

Getting Total unread messages count in Twilio Conversations

we're using Twilio Conversations to power 1-to-1 chat for a webapp. I see that the unreadMessagesCount implemented via Read Horizon can indicate the number of unread messages in a particular conversation for a participant.
My question: Is there a way to get the total unread messages for ALL of a user's ongoing conversations? E.g., if a user has 3 ongoing conversations that each have 5 unread messages, I would like to provide the user with an badge showing they have 15 unread messages (i.e., the customary user experience using messaging apps).
Would we have to loop through all the conversations that a user is a participant of and call unreadMessagesCount for each? If so, have some concern if that would bog down performance too much as some users could be a participant to a large number of conversations.
If total count of unread messages in all conversations is not able to be implemented efficiently, would also be fine if could just identify the total number of 1-on-1 conversations that have 1+ unread messages. But have not found a way to do this either.
Appreciate any thoughts on the best way to implement this.

What's the best way to join and leave pubnub channels dynamically

I'm working on this chat type scenario and the need is to track presence -
Note: every client in this scenario will subscribe with option withPresence set to true.
Pubnub cofig-
Max announce is set to 1, so i rely on interval event type.
phoneA will ask server for a channel name, Server will generate a unique channel name (lets say ch-chat) and return to PhoneA.
Now both phoneA and server will add the channel to their own channel groups (cg-phoneA and cg-server)and subscribe to their own channel groups.
PhoneA shares the channel name with phoneB and phoneC and they both add the channel to their own channel groups, cg-phoneB and cg-phoneC. Bkth B and C are also subscribed to their own channel group.
Now,
When phoneA removes channel (ch-chat) from its own channel group (cg-phoneA), server does not gets phobeA in leave uuids list of interval event. But after ~5mins server gets timeout event for phoneA.
What i want -
phoneA should present in the leave list of the interval event since phoneA removed the channel from its own channel group, theres no way it should be subscribed anymore to it.
Presence Modes: Announce vs Interval
One issue is that your Announce Max setting of 1 will mute all presence events except for state-change. In other words, you are in Interval mode all the time for every channel. Read more about Presence Event Modes here.
When channels are added to a channel group, you should receive the join event (if in Announce mode and not Interval), if you are subscribed to the channel group withPresence: true. Be sure you want to receive presence events for all channels in that channel group though. You can create a second channel group for channels you do not need to receive presence events.
Managing Channel Groups
As for managing Channels in your Channel Groups, be sure that only your Server is the one adding/removing channels for all channel groups. This has to do with security when you enable Access Manager (and everyone should be enabled/implementing Access Manager to protect your keys and your users).
Presence Webhooks
As for Presence Webhooks, this is the best way for your Server to monitor presence events. It is not recommended that you subscribe from your server. It will be difficult/complex to scale to multiple server instances. This is why the Presence Webhooks exist. And your clients and POST directly to the Server for any requests it needs, like your "generate new channel" request. And your server and reply to those posts and then publish all further updates to the channel the client is subscribed to.
Channel Naming Conventions
It is great that you are using "generated channel names" (like a UUID pattern) but prefix your channels to identity them to provide a means to group them with pattern match through regex. I would recommend using a "dot" so that you can also potentially take advantage of PubNub wildcarding features:
PubNub Functions channel binding
Presence ACLs (custom presence channel behavior configuration)
Access Manager wildcard granting
Wildcard Subscribe
For example:
chat.4849-ut83-83jd...
notify.tuy7-87er-27fn...
NOTE: Channel Groups do not allow "dots" in the name and do not have any wildcarding features.

push notifications using mixpanel. After selecting groups of 50K+ users, we see around 100 messages received and 0 messages opened.

We want to send push notifications using mixpanel.
After selecting groups of 50K+ users, we see around 100 messages received and 0 messages opened. Any ideas as to technical issues that might be causing these severely dysfunctional funnels.
Also I am not able to locate my own device to run a test. I have confirmed that many of our users have a "tokenValue" set. Our app is written in Unity.

jmeter mail reader sampler - controlling which msgs to fetch

I have jmeter's mail reader sampler working and it fetches the email from my gmail account. The issue is that it keeps fetching the email from the oldest to newest manner and I have about ~10k messsages in my email.
So when I specify get 5 messages, it keeps fetching the oldest five messages in my email. Is there a way I can make it fetch only the latest 5 messages for me without making it fetch all ~10k messages in the process?
One more question: what if I want it to only fetch a message that has a certain keyword like this below, regardless of whether its in the latest 100 or latest 5 messages, especially as I keep getting emails throughout the day:
key "generated_key" (there is text preceding it and after it)
Can you tell me how I could make that work. Thank you!

iOS- Apple push notification resend from APNS

From Apple's document I understand that if the device is offline, the APNS holds the last notification and sends it to the device when the device is back online. Is there is any mechanism to avoid that resending?
The correct answer is YES
If you send notifications using the enhanced binary format (the one that includes message identifier and expiry), you can use the expiry parameter to prevent the notification from being stored in the APN server. This way the notification is delivered only if the device is online when the APN server first tries to deliver it.
Expiry
A fixed UNIX epoch date expressed in seconds (UTC) that identifies when the notification is no longer valid and can be discarded. The expiry value uses network byte order (big endian). If the expiry value is positive, APNs tries to deliver the notification at least once. Specify zero (or a value less than zero) to request that APNs not store the notification at all.
The answer is NO
Here is what apple says about it,
If APNs attempts to deliver a notification but the device is offline,
the notification is stored for a limited period of time, and delivered
to the device when it becomes available.
Only one recent notification for a particular application is stored.
If multiple notifications are sent while the device is offline, each
new notification causes the prior notification to be discarded. This
behavior of keeping only the newest notification is referred to as
coalescing notifications.
If the device remains offline for a long time, any notifications that
were being stored for it are discarded.
I agree with Eran.
This part of your question "the APNS holds the last notification and sends it to the device when the device is back online" is only true if Expiration date is different of zero.
If you do want the message to be delivered when the phone gets online, the message will wait until "Expiration date" before be discarded.
APNS documentation:
Expiration date 4 bytes A UNIX epoch date expressed in seconds (UTC)
that identifies when the notification is no longer valid and can be
discarded. If this value is non-zero, APNs stores the notification
tries to deliver the notification at least once. Specify zero to
indicate that the notification expires immediately and that APNs
should not store the notification at all.
For more details, refer to https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/CommunicatingWIthAPS.html