Picture of Silvio 2739
Registered 9 years 85 days
Silvio 2739 Monday, 15 June 2020, 12:08 PM
Wanted: sample code for badge signalling

Hello, I tried to use Badge signalling, but with no success.

The project template creates a method CreateBadgeCountPresenceMonitor in the AppInstance class that looks like

void Foo::CreateBadgeCountPresenceMonitor(BadgeCountSignaling * signaling, int call, const char* user, const char* topic) {
    new FooBadgeCountPresenceMonitor(this, signaling, call, user, topic);
}

When I set breakpoints to this line or to lines in FooBadgeCountPresenceMonitor it never stops there. Is this used for badges?

Or in general: Is there an example how to show a badge with a number or letters on an application icon in the AppClient?

2013
Moderator Registered 16 years 73 days
Guntram Diehl (innovaphone) Wednesday, 24 June 2020, 04:44 PM
Re: Wanted: sample code for badge signalling
The "empty" App generated by the SDK when creating a new App in Visual Studio contains code for Badge Count SIgnaling, which is used to indicate the change in the counter
Picture of Silvio 2739
Registered 9 years 85 days
Silvio 2739 Thursday, 25 June 2020, 11:49 AM
Re: Wanted: sample code for badge signalling
For me it seems it doesn't work - or maybe my expectations are wrong.

There are two users. In the Chat app when one user sends a message to the second user, and the second user has the Chat app closed, there is a badge showing the number of new messages. In the "empty" app (build 132425) the second user can only see the counter increasing when the app is open and the first user clicks the count button. But nothing happens for the second user when the app is closed.

Also in sdk/13r1/doc/reference.htm there is a link labeled "badgecount_signaling" to sdk/13r1/common/lib/badgecount_signaling.htm but this file doesn't exist.

Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 179 days
Daniel Deterding (innovaphone) Tuesday, 14 July 2020, 07:36 AM
Re: Wanted: sample code for badge signalling
Hi Silvio,

the badgecount_signaling.htm was indeed missing in some previous SDK versions.
Can you install the latest SDK, e.g. by downloading "innovaphone SDK" from https://store.innovaphone.com

Then you should have this file.

Or you use the online documentation:
http://sdk.innovaphone.com/common/lib/badgecount_signaling.htm

Greetings,
Daniel
Picture of Silvio 2739
Registered 9 years 85 days
Silvio 2739 Wednesday, 15 July 2020, 11:43 AM
Re: Wanted: sample code for badge signalling
Thanks for the missing documentation file.I'd still appreciate to get a working example of badge signalling. The docs still don't show me what things an application needs to turn on and update the bagde.
← You can define your color theme preference here