I have created a new devRant account and the feed could not be decoded, because notif_state was -1 and it tried to decode it as a String. This happens probably when the account has not verified its email yet.
So to fix it, I added code to decode it as an Int and then converting it into a String, if it fails.
I have created a new devRant account and the feed could not be decoded, because notif_state was -1 and it tried to decode it as a String. This happens probably when the account has not verified its email yet. So to fix it, I added code to decode it as an Int and then converting it into a String, if it fails.