Skip to content

Web App URL Feedback #65

Description

@peternewman

Hi @itota ,

Given you've got a good test setup, we've already seen what the webAppURL looks like with what was presumably an URL type loaded:
webAppState

From your preset shortcuts in #64 , I'd be curious if you can capture some sample variable contents for any of the other types we support:

{ id: 'activity', label: 'Android Activity' },
{ id: 'url', label: 'URL' },
{ id: 'manifest', label: 'Manifest' },
{ id: 'auid', label: 'Application ID' },

I'm hoping to do something like parseDeviceResourceURI but for this data, but I'm not exactly sure what the data looks like...

parseDeviceResourceURI: function (uri) {
try {
resourceURI = new URL(uri)
if (resourceURI.protocol == 'extinput:') {
let params = resourceURI.searchParams
return {
// Seemingly not URL.host!
kind: resourceURI.pathname,
port: parseInt(params.get('port')),
}
} else {
return undefined
}
} catch (e) {
// instanceof doesn't seem to work directly
if (e.name == 'TypeError') {
return undefined
} else {
throw e
}
}
},

Metadata

Metadata

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions