Increment Badge with FCM

#1

Hey Folks,
I’ve implemented Firebase Cloud Messaging into my ionic app and it works great but I want to increment the home screen “badge”.

The POST call to update the badge requires a numerical value (no i++ or logic) for the badge param. How do I check to see what the badge is currently for that user, so I can increment it by 1?

Any help would be appreciated.