Picture of Ingo 92
Registered 15 years 117 days
Ingo 92 Wednesday, 25 January 2023, 12:34 PM
Badge
Hi,

we have the following problem with one of our self-made apps.

The client of this app sets a "badge". So far this worked without any problems in V13r2.
But now in V13r3 it only works on the app icon in the home screen, but not on the icon in the app bar (task bar) of myApps. This appears to be a bug.


https://sdk.innovaphone.com/13r3/web1/lib1/lib1.htm
setBadge(value)
Sets a badge on the app icon in the start bar and on home. Usually value is a number, but you can use any UTF8 character to indicate states of the running app. Note that this function is only useful to indicate states while the app is running. If badge counts should appear also while it's not running the badge count should be set from the backend.


The function is called in our app via: start.setBadge(symbol) Where symbol is a UTF-8 character.

The function from the innovaphone.lib1.js is used.

start.setBadge = function (val) {
start.postClientMessage({ mt: "Action", type: "SetBadge", value: val });
};

The app platform has the software version: 110025 (x86_64).
The PBX runs on V13r3sr1.

Do you have any idea what the problem is?

Best regards
Ingo
Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Wednesday, 1 February 2023, 11:58 AM
Re: Badge
Hello Ingo,

we have no changes at this place from 13r2 t o13r3 and i also can not reproduce this problem at the moment.

Could you post a browser console log when the problem appears? This may help to investigate.

Best Regards
Andreas Fink
Picture of Ingo 92
Registered 15 years 117 days
Ingo 92 Monday, 13 February 2023, 02:52 PM
Re: Badge
Hello Andreas,

our app sets the BadgeCount as follows:

recv from testapp: {"mt":"Action","type":"SetBadge","value":"☰"}

The app icon is then placed on the home screen, but not in the taskbar.
In V13r2 it works.


Best Regards
Ingo
pic.png

Picture of Ingo 92
Registered 15 years 117 days
Ingo 92 Monday, 27 February 2023, 01:02 PM in response to Andreas Fink (innovaphone)
Re: Badge
Hi Andreas,

Unfortunately, we can't get any further in this case.
Innovaphone made changes to the taskbar with regard to the Focus app. There may be a problem with the badge function. Can you please check that again.

Best Regards
Ingo
Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Wednesday, 1 March 2023, 05:50 PM
Re: Badge
Hello Ingo,

I'm sorry, but i can not reproduce the problem.

I tried it with the following JavaScript code:

window.parent.postMessage(JSON.stringify({ "mt": "Action", "type": "SetBadge", "value": "\u2630" }), "*");

Result is attached as screenshot.

It works on 13r3 PBX + latest Chrome browser version.

Best Regards
Andreas Fink
set_badge_icon.png

Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Wednesday, 26 April 2023, 01:41 PM
Re: Badge
Just a follow-up - the specific problem was fixed in the 13r3 sr3:

← You can define your color theme preference here