⭐ Axway Amplify module for using Google Play Services with Appcelerator Titanium SDK
npm install @titanium/playservices[//]: # (header-start)
🪦 RIP Axway Amplify Titanium (2010 - 2022)
🪦 RIP Axway Amplify Cloud Services (2012 - 2022)
🪦 RIP Axway Amplify Crash Analytics (2015 - 2022)
> 👉 A group of Axway employees, ex-Axway employees, and some developers from Titanium community have created a legal org and now officially decide all matters related to future of these products.
* API Best Practices
* What is API Security?
* OWASP Top 10 List for API Security
* What is API Security?
* Top API Trends for 2022
* What is a Frankenstein API?
* What is a Zombie API?
* API Developer Experience
* API Cybersecurity 101
* YouTube API Videos
* YouTube API Shorts Videos

[//]: # (header-end)


> Native modules that allows you to use Native modules that allows you to use Google Play Services with Axway Titanium native mobile apps. with Axway Titanium native mobile apps.

---
* 📝 Description
* 🚀 Getting Started
* Install @titanium/playservices in root of project
* Requirements
* Author
* License
* ✨Features
* 📚Learn More
* 📣 Feedback
* ©️ Legal
This is a repackaging of the compiled iOS and Android modules for ti.playservices to allow for installation via npm.
``bash`
npm install @titanium/playservices
Use require() to access the module from JavaScript:
`javascript`
const PlayServices = require('@titanium/playservices');
The PlayServices variable is a reference to the module. Make API calls using this reference:
`javascript`
const playServicesAvailable = PlayServices.isGooglePlayServicesAvailable();
It is highly recommended to detect availability issues before using Play Services:
`javascript
const PlayServices = require('@titanium/playservices');
const win = Ti.UI.createWindow({ backgroundColor: 'gray' });
const btn = Ti.UI.createButton({ title: 'CHECK PLAY SERVICES' });
btn.addEventListener('click', () => {
PlayServices.makeGooglePlayServicesAvailable((e) => {
if (e.success) {
alert(Play Services: ${PlayServices.GOOGLE_PLAY_SERVICES_VERSION_CODE});Play Services is not available.
// Use Play Services
} else {
alert();
}
});
});
win.add(btn);
win.open();
`
To include Play Services libraries with your native module include the module as a dependency by adding a item to the element of your timodule.xml file:
`XML`
...
...
For a detailed API example please see android/example/app.js
* [x] Includes Titanium native Android module: ti.playservices 16.1.0`
- ti.playservices GitHub Repo - Repo for ti.playservices module
Have an idea or a comment? Join in the conversation here!
Modules are licensed under Apache 2.0 from https://github.com/appcelerator-modules/titanium-playservices
Alloy is developed by Appcelerator and the community and is Copyright © 2012-Present by Appcelerator, Inc. All Rights Reserved.
Alloy is made available under the Apache Public License, version 2. See their license file for more information.
Appcelerator is a registered trademark of Appcelerator, Inc. Titanium is a registered trademark of Appcelerator, Inc. Please see the LEGAL information about using trademarks, privacy policy, terms of usage and other legal information at http://www.appcelerator.com/legal.