Using desktop push notification when the title and body written using right-to-left languages like Arabic language, the browser detect the language and change the direction even if dir and lang param not provided in the object the new notification is created for example:

bug.png

The title is under the setting icon (this is the current implementation)

But in facebook it seemed their use custom desktop notification, for example:

rightOne.jpg

The facebook desktop notification looking perfect

Note: this behavior for windows user and to be more specific just Chrome browser the IOS always work with ltr direction neither if dir and lang provided or not and I try to use the chrome rich notification also it didn't work.

The Question: how I can custom the desktop notification at least show the hole title.

Thank you very much in advance.

Hi,

I see this happens on Linux Chromium too, here's a demo: https://jsfiddle.net/tzd1gyjf/
Looking at the bug list it seems to be an intended behaviour:

But it still does not explain how the FB notification looks so different.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.