Google Maps in Chrome ARC

大兔子大兔子 提交于 2019-12-02 09:17:34

问题


I recently saw that ARC is now supporting a few Google Play Services including Google Maps.

When using the ARC Welder, I specify the following metadata:

{"usePlayServices":["maps"]}

According to the documentation here, I must also include the crx_key value in the metadata. When doing so, the additional metadata appears as such:

{
 "usePlayServices":["maps"],
 "crx_key":"<KEY FROM WEBSTORE>"
}

Attempting to Launch the App causes an "Error Loading Extension" message:

Any ideas as to why I'm receiving this error? I made sure the key has no white spaces/line returns as mentioned in the documentation.


回答1:


When copying your public key from the web store, it's important to select exactly the right thing. The highlighted portion below is the public key, make sure not to select the -----BEGIN/END PUBLIC KEY----- annotations, and to remove any line breaks / whitespace (as you said you already had).




回答2:


This Additional Metadata worked for my apk that uses Google Maps API for Android and Google Location API:

{
  "usePlayServices": ["location", "maps"]
}


来源:https://stackoverflow.com/questions/29433981/google-maps-in-chrome-arc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!