On this Website here stands the following sentence:
Note: Make sure you have Location Permissions before calling onPause/onResume of the LocationProvider.
How and where should the rights be assigned?
You need to make sure that you have the location services on for your app. The location service has to be authorised by the user (so you can check your phone settings for the app if the location service is enabled to the specific app). For the location handling and the correct set-up please check the set-up guide to make sure you have everything done correctly.