Yes, it works perfectly fine on the real phone.
The problem was with the emulator, specifically the build architecture was not fully supported by the emulator and the corresponding message was in the output which I was ignoring all the time :(