Open marcusds opened 9 years ago
I'd be interested in this too; I'm not sure if any of the existing fake location apps available would work either....
+1 here
I just put "geolocation"
in my manifest permissions and it pulled my actual location fine.
@niedzielski could you share your manifest example?
Sure thing. Don't use this as a canonical example of what a manifest should like. I just hacked it together. Note: you might have to use "location"
instead of or in addition to "geolocation"
below depending on your browser version. More in the docs here.
{
"app": {
"background": {
"page": "app_main.html"
}
},
"arc_metadata": {
"apkList": [
"custom-android-release-1400197.apk"
],
"canRotate": true,
"enableExternalDirectory": true,
"formFactor": "tablet",
"name": "com.mapquest.android.ace",
"orientation": "landscape",
"packageName": "com.mapquest.android.ace",
"useGoogleContactsSyncAdapter": false,
"usePlayServices": [
"gcm"
],
"enableAdb": true
},
"default_locale": "en",
"icons": {
"16": "icon.png",
"128": "icon.png"
},
"import": [
{
"id": "mfaihdlpglflfgpfjcifdjdjcckigekc"
}
],
"manifest_version": 2,
"name": "__MSG_extName__",
"oauth2": {
"client_id": "133701689125-jj0hr4gb0ff4ulsbrn0uk2i4th946d4c.apps.googleusercontent.com",
"scopes": []
},
"offline_enabled": true,
"permissions": [
"gcm",
{
"socket": [
"tcp-connect",
"tcp-listen",
"udp-bind",
"udp-send-to",
"resolve-host"
]
},
"unlimitedStorage",
"notifications",
"clipboardRead",
{
"fileSystem": [
"write",
"directory"
]
},
"https://clients2.google.com/",
"videoCapture",
"clipboardWrite",
"identity.email",
"alarms",
"storage",
"identity",
"audioCapture",
"geolocation"
],
"requirements": {
"3D": {
"features": [
"webgl"
]
}
},
"update_url": "https://localhost",
"version": "1337"
}
Is there any way to fake a location, or something like that so apps that need a location can still work?