{"id":21815436,"url":"https://github.com/queue-inc/queue-beacon","last_synced_at":"2026-05-07T10:38:29.615Z","repository":{"id":62451674,"uuid":"157090455","full_name":"Queue-inc/queue-beacon","owner":"Queue-inc","description":"Beacon Plugin for Weex","archived":false,"fork":false,"pushed_at":"2018-12-02T15:20:12.000Z","size":1250,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T10:12:10.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Queue-inc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-11T14:58:44.000Z","updated_at":"2018-12-02T15:20:04.000Z","dependencies_parsed_at":"2022-11-01T22:46:14.541Z","dependency_job_id":null,"html_url":"https://github.com/Queue-inc/queue-beacon","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Queue-inc/queue-beacon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Queue-inc%2Fqueue-beacon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Queue-inc%2Fqueue-beacon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Queue-inc%2Fqueue-beacon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Queue-inc%2Fqueue-beacon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Queue-inc","download_url":"https://codeload.github.com/Queue-inc/queue-beacon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Queue-inc%2Fqueue-beacon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267400294,"owners_count":24081181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-27T15:18:58.071Z","updated_at":"2026-05-07T10:38:29.589Z","avatar_url":"https://github.com/Queue-inc.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# queue-beacon\n\nThis is a weex plugin to receive iBeacon packets on iOS and Android devices.\n\n## Install\n\n```\nNot ready\n```\n\n## Usage\n### Initialization\nTo use this library, first you need to put the following code in your vue file.\n\n```javascript\nconst queueBeacon = weex.requireModule('queueBeacon');\nmodule.exports = {\n\tmethods: {\n\t\tcreateAction: function() {\n\t\t\tqueueBeacon.start({\n\t\t\t\tproximityUUID: \"00000000-2F7F-1001-B000-001C4DE5FF78\",\n\t\t\t\tidentifier: \"sample_identifier\",\n\t\t\t\tmajor: \"321\",\n\t\t\t\tminor: \"123\"\n\t\t\t}, (result) =\u003e {\n\t\t\t\tconsole.log(result);\n\t\t\t});\n\t\t}\n\t}\n}\n```\n*Notice: `major` and `minor` value are optional.*\n\n### Structure of results\nAll callbacks are returned to `result` json object. The structure of every `result` is following:\n\n```\n{\n\t\"name\": \"name_of_callback\",\n\t\"data\": {\n\t\t\"key1\": \"value1\",\n\t\t\"key2\": \"value2\",\n\t\t...\n\t}\n}\t\n```\n\nThere are 4 callbacks regarding to receiving packets of beacons as below:\n\n- didRangeBeacons (called periodically when device detects beacons)\n\n```\n{\n\t\"name\": \"didRangeBeacons\",\n\t\"data\": {\n\t\t\"identifier\": (string),\n\t\t\"proximityUUID\": (string),\n\t\t\"major\": (number),\n\t\t\"minor\": (number),\n\t\t\"beacons\": [\n\t\t\t{\n\t\t\t\t\"proximityUUID\": (string),\n\t\t\t\t\"major\": (number),\n\t\t\t\t\"minor\": (number),\n\t\t\t\t\"proximity\": (string),\n\t\t\t\t\"accuracy\": (number),\n\t\t\t\t\"rssi\": (string)\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"proximityUUID\": (string),\n\t\t\t\t\"major\": (number),\n\t\t\t\t\"minor\": (number),\n\t\t\t\t\"proximity\": (string),\n\t\t\t\t\"accuracy\": (number),\n\t\t\t\t\"rssi\": (string)\n\t\t\t},...\n\t\t]\n\t}\n}\n```\n\n- didEnterRegion (called when device enters region of a specific beacon)\n\n```\n{\n\t\"name\": \"didEnterRegion\",\n\t\"data\": {\n\t\t\"identifier\": (string)\n\t}\n}\n```\n\n- didExitRegion (called when device exits region of a specific beacon)\n\n```\n{\n\t\"name\": \"didExitRegion\",\n\t\"data\": {\n\t\t\"identifier\": (string)\n\t}\n}\n```\n\n- didDetermineState (called when device determined state of nearby beacon)\n\n```\n{\n\t\"name\": \"didDetermineState\",\n\t\"data\": {\n\t\t\"identifier\": (string),\n\t\t\"state\": (string)\n\t}\n}\n```\n\n### String constants\nSome keys can have only several pattern strings.\n\n- `proximity`\n\t- `Immediate`: accuracy \u003c 0.5\n\t- `Near`: accuracy \u003c 3.0\n\t- `Far`: accuracy \u003e= 3.0\n\t- `Unknown`: accuracy \u003c 0 or unknown\n\n- `state`\n\t- `Inside`: inside the specific region\n\t- `Outside`: outside the specific region\n\t- `Unknown`: unknown","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueue-inc%2Fqueue-beacon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueue-inc%2Fqueue-beacon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueue-inc%2Fqueue-beacon/lists"}