Google API keys - What is server key and browser key -


i ma using google maps in app, , use url following format without api key- values,

<script type="text/javascript"       src="https://maps.googleapis.com/maps/api/js?sensor=set_to_true_or_false">     </script> 

now need use api key track requests, according examples needs add api key query string parameter,

<script type="text/javascript"       src="https://maps.googleapis.com/maps/api/js?key=api_key&sensor=set_to_true_or_false"> </script> 

but, received 2 keys, 1 servers (ip address restrictions) , 1 browser apps (domain level restrictions) follows:

server key: xxxx browser key: yyyyy

which key should use in app, should use both of them? not find article on this.

try browser key, found post, it's written on 2012,

https://groups.google.com/forum/#!topic/android-gcm/ir-dntprkcu

found on web: "2.click create new server key. either server key or browser key should work. advantage using server key allows whitelist ip addresses. following screen appears:"

http://developer.android.com/google/gcm/gs.html

hope you!


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -