Termux API on Android 8.1 hanging


I am running termux api on Android 8.1. But it just hangs when requesting battery info and location etc. I have set all permission but still not working. Kindly assist.

Report here with logs preferably

Does Termux api run/work on Android go 8.1?