when running the application for the first time it crashes (nothing on logcat). then you can see the requests for permissions and after you give the permission you can open the application and it works fine. when running the application for the first time