{"id":28100389,"url":"https://github.com/tidev/ti.playservices","last_synced_at":"2026-01-12T05:59:30.098Z","repository":{"id":37953671,"uuid":"105078944","full_name":"tidev/ti.playservices","owner":"tidev","description":"Titanium module for Google Play Services","archived":false,"fork":false,"pushed_at":"2025-03-03T14:34:31.000Z","size":7092,"stargazers_count":19,"open_issues_count":21,"forks_count":12,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-13T13:03:51.207Z","etag":null,"topics":["appcelerator","axway","google-play-services","javascript","native","titanium","titanium-module"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tidev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"tidev","liberapay":"tidev"}},"created_at":"2017-09-27T23:16:38.000Z","updated_at":"2025-03-03T14:34:10.000Z","dependencies_parsed_at":"2024-05-28T20:29:07.791Z","dependency_job_id":"64ecfcfb-a658-4e52-bf6c-c8dd74b62f14","html_url":"https://github.com/tidev/ti.playservices","commit_stats":null,"previous_names":["appcelerator-modules/ti.playservices"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Fti.playservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Fti.playservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Fti.playservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Fti.playservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidev","download_url":"https://codeload.github.com/tidev/ti.playservices/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254003599,"owners_count":21997911,"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","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":["appcelerator","axway","google-play-services","javascript","native","titanium","titanium-module"],"created_at":"2025-05-13T18:34:14.258Z","updated_at":"2026-01-12T05:59:25.068Z","avatar_url":"https://github.com/tidev.png","language":"JavaScript","funding_links":["https://github.com/sponsors/tidev","https://liberapay.com/tidev"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://lh4.ggpht.com/fX0oncZTwPIETqwHYjYzW2o44N3NqsAB_X16KTJzTDFK4UdcGrtKaMxuVtCX-3Ovzqw=w300\" height=\"128\" width=\"128\"\u003e\n\t\u003ch1 align=\"center\"\u003eti.playservices\u003c/h1\u003e\n\t\u003ch5 align=\"center\"\u003eTo provide Google Play Services for Titanium modules and applications\u003c/h6\u003e\n\t\u003cdiv align=\"center\"\u003e\n\t\t\u003cimg src=\"https://github.com/appcelerator-modules/ti.playservices/raw/master/apidoc/diagram.png\" height=\"170\" width=\"449\"\u003e\n\t\u003c/div\u003e\n\u003c/p\u003e\n\n## Requirements\n- Titanium Mobile SDK 7.0.0 or later (release 12/2017)\n\n## Example\nAdd the module as a dependency to your application by adding a `\u003cmodule\u003e` item to the `\u003cmodules\u003e` element of your `tiapp.xml` file:\n```XML\n\u003cti:app\u003e\n  ...\n  \u003cmodules\u003e\n    \u003cmodule platform=\"android\"\u003eti.playservices\u003c/module\u003e\n  \u003c/modules\u003e\n  ...\n\u003c/ti:app\u003e\n```\n\nUse `require()` to access the module from JavaScript:\n```JS\n    const PlayServices = require('ti.playservices');\n```\n\nThe `PlayServices` variable is a reference to the module. Make API calls using this reference:\n```JS\n    const playServicesAvailable = PlayServices.isGooglePlayServicesAvailable();\n```\n\nAs of version 17.1.0 (only supported by Titanium Mobile SDK 9.0.0 and above), the `ti.playservices` module will automatically check if\nGoogle Play Services is installed and up-to-date on the device upon app startup. If not, the module will prompt the\nend-user to install/update it. The main app script (ie: `app.js` or `alloy.js`) will not be executed until the end-user has\nsuccessfully installed/updated Google Play Services or if it is already up-to-date.\n\nIf you do not want `ti.playservices` to check Google Play Services on app startup, then you can disable the above mentioned behavior\nby setting the below property in the `tiapp.xml` file.\n\n```xml\n\u003cti:app xmlns:ti=\"http://ti.appcelerator.org\"\u003e\n\t\u003cproperty name=\"ti.playservices.validate.on.startup\" type=\"bool\"\u003efalse\u003c/property\u003e\n\u003c/ti:app\u003e\n```\n\nIf you disable the above behavior, then it is highly recommended to detect availability issues yourself as shown below.\n```JS\nconst PlayServices = require('ti.playservices');\n\nconst win = Ti.UI.createWindow({ backgroundColor: 'gray' });\nconst btn = Ti.UI.createButton({ title: 'CHECK PLAY SERVICES' });\n\nbtn.addEventListener('click', () =\u003e {\n    PlayServices.makeGooglePlayServicesAvailable((e) =\u003e {\n        if (e.success) {\n            alert(`Play Services: ${PlayServices.GOOGLE_PLAY_SERVICES_VERSION_CODE}`);\n            // Use Play Services\n        } else {\n            alert(`Play Services is not available.`);\n        }\n    });\n});\n\nwin.add(btn);\nwin.open();\n```\n\nTo include Play Services libraries with your native module include the module as a dependency by adding a `\u003cmodule\u003e` item to the `\u003cmodules\u003e` element of your `timodule.xml` file:\n```XML\n\u003cti:module\u003e\n  ...\n  \u003cmodules\u003e\n    \u003cmodule platform=\"android\"\u003eti.playservices\u003c/module\u003e\n  \u003c/modules\u003e\n  ...\n\u003c/ti:module\u003e\n```\n\nFor a detailed API example please see [android/example/app.js](https://github.com/appcelerator-modules/ti.playservices/blob/master/android/example/app.js)\n\n## Build\n1. Create a `lib` folder in the `android` directory\n2. Run `npm install node .` from the `updater` directory\n3. Run `npm install \u0026\u0026 node .` from the `updater` directory\n4. Run `appc run -p android --build-only` from the `android` directory\n\n## Author\nAxway\n\n## License\nApache 2.0\n\nContributing\n---------------\nCode contributions are greatly appreciated, please submit a new [pull request](https://github.com/appcelerator-modules/ti.playservices/pull/new/master)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidev%2Fti.playservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidev%2Fti.playservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidev%2Fti.playservices/lists"}