ferdium-app icon indicating copy to clipboard operation
ferdium-app copied to clipboard

Gmail Unread Message Badge not showing

Open jimmylad opened this issue 8 months ago • 9 comments

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that Ferdium Recipes adheres to.
  • [x] I have searched the issue tracker for a bug report that matches the one I want to file, without success.

Ferdium Version

7.0.1

Recipe Name

Gmail

Recipe Version

1.6.3

Last Known working version of the recipe

No response

Steps to reproduce

Add New Gmail Recipe Unread badge doesn't show

Expected Behavior

Unread badge shows count

Actual Behavior

Unread badge doesn't show

Screenshots

No response

Additional Information

No response

jimmylad avatar Apr 21 '25 19:04 jimmylad

Anyone?

jimmylad avatar Apr 28 '25 06:04 jimmylad

Anyone??

jimmylad avatar May 16 '25 08:05 jimmylad

@jimmylad I'm also experiencing the same thing.

The odd thing is that I have 4 Gmail accounts in my Ferdium and the first 3 are showing unread message badges, but the fourth isn't -- I can't quite remember, but I think it was the first one that I added to Ferdium.

I've cleared the cache, I've removed the service and re-added it. But it still doesn't show the badge, which is annoying as this is my primary email account.

garethjmsaunders avatar May 24 '25 08:05 garethjmsaunders

This is still not working after updating to 7.1.0.

@garethjmsaunders Is your first gmail account a non-Workspace account and the others Workspace? Mine are all Workspace. Or perhaps the view settings affect it? I've tried with different inbox views and spacing, as well as user agents, but nothing is working.

jimmylad avatar May 26 '25 05:05 jimmylad

Apparantly the webview.js-script is crashing.

Quick fix:

  1. Open /Users/$USER/Library/Application Support/Ferdium/recipes/gmail/webview.js (or where ever Feridium recipes is installed to)
  2. Change line 52 to
     (acc, e) =>
         Ferdium.safeParseInt(
             ('getInnerHTML' in e &&
             typeof e.getInnerHTML === 'function'
                 ? e.getInnerHTML()
                 : e.innerHTML) ?? '0',
         ) + acc,
    

Background: Method getInnerHTML doesn't exist. This code change introduces a fallback to property innerHTML and if that isn't defined a constant 0 string.

SvenAndBits avatar May 28 '25 15:05 SvenAndBits

@SvenAndBits That worked! Thanks so much 👍

jimmylad avatar May 28 '25 15:05 jimmylad

@jimmylad Apologies, I was away for a few days. They are all Workspace accounts, I think.

@SvenAndBits Thank you! This has fixed it for me too.

garethjmsaunders avatar May 29 '25 07:05 garethjmsaunders

@SvenAndBits Thank you! Worked for me as well. I have five Gmail services, three of which are Workspace, two retail. First one in list is retail, that was working. All the rest showed no badge. But now all are correct!

catconner avatar Aug 12 '25 07:08 catconner

Apparantly the webview.js-script is crashing.

Has someone made a PR for this? This works flawlessly!


For me the file was located at: C:\Users\<user>\AppData\Roaming\Ferdium\recipes\gmail\webview.js

KSneijders avatar Sep 11 '25 10:09 KSneijders