Google Maps in Chrome ARC

2020-04-19 05:04发布

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:

Error 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.

2条回答
Bombasti
2楼-- · 2020-04-19 05:44

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

{
  "usePlayServices": ["location", "maps"]
}
查看更多
劳资没心,怎么记你
3楼-- · 2020-04-19 06:00

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).

The public key here is MIIB...QAB

查看更多
登录 后发表回答