And if you got here from the page of the original badge extension, you may be interested in a more up-to-date version. Everything works for me on Flarum 1.8.5. I even completely translated the extension into my language.
In theory, this badge extension can be used as an extension of achievements, but due to the lack of automation, it will have to be issued manually. That's how I set it up.