If you are sure that your onViewCreated is run, did you try to await the query response in case its a Promise?
I am not familiar with android, but hope it helps.