I am new to Android and working on a google map project. For this I am using this library to draw a route between two points.
This works fine when there is no restriction on the google map api key. But when restriction is applied to my app's package name and sha1 key it won't show the route.
It throws an exception saying:
This IP, site or mobile application is not authorized to use this API key. Request received from IP address XX.XX.XXX.XXX, with empty referrer
Is there any way to use this library with a restricted api key? How can I add a referrer with this library?