I am using the code described in the algolia docs. It is working when firebase rules allow both read and write without authentication. This does not work with data which req