An open API service indexing awesome lists of open source software.

https://github.com/mobilehero-archive/titanium-playservices

⭐ Axway Amplify module for using Google Play Services with Appcelerator Titanium SDK
https://github.com/mobilehero-archive/titanium-playservices

android api-builder appcelerator appcelerator-titanium axway axway-amplify brenton-house google mobile play-services titanium titanium-alloy titanium-mobile titanium-module titanium-sdk

Last synced: 3 months ago
JSON representation

⭐ Axway Amplify module for using Google Play Services with Appcelerator Titanium SDK

Awesome Lists containing this project

README

          

[//]: # (header-start)



Preparing for end of Axway



👇   support for Amplify Cloud and Mobile   👇



RIP Axway Amplify Titanium (2010 - 2022)





🪦   RIP Axway Amplify Titanium (2010 - 2022)




🪦   RIP Axway Amplify Cloud Services (2012 - 2022)




🪦   RIP Axway Amplify Crash Analytics (2015 - 2022)




🛑    Axway support for Amplify products has ended for most products related to mobile and cloud.


A few of the open-source versions of Axway Amplify products will live on after Axway Amplify End-of-Life (EOL) announcements. However, all closed-source projects and most open-source projects are now dead.

 

> 👉    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 FAQ:

* [API Best Practices](https://brenton.house)
* [What is API Security?](https://brenton.house/what-is-api-security-5ca8117d4911)
* [OWASP Top 10 List for API Security](https://www.youtube.com/watch?v=GLVHDj0Cpg4)
* [What is API Security?](https://brenton.house/what-is-api-security-5ca8117d4911)
* [Top API Trends for 2022](https://brenton.house/top-10-api-integration-trends-for-2022-49b05f2ef299)
* [What is a Frankenstein API?](https://brenton.house/what-is-a-frankenstein-api-4d6e59fca6)
* [What is a Zombie API?](https://brenton.house/what-is-a-zombie-api-6e5427c39b6a)
* [API Developer Experience](https://brenton.house/keys-to-winning-with-an-awesome-api-developer-experience-62dd2fa668f4)
* [API Cybersecurity 101](https://brenton.house/what-is-api-security-5ca8117d4911)
* [YouTube API Videos](https://youtube.com/brentonhouse)
* [YouTube API Shorts Videos](https://youtube.com/apishorts)

 

[![Click to watch on Youtube](https://img.youtube.com/vi/GLVHDj0Cpg4/0.jpg)](https://www.youtube.com/watch?v=GLVHDj0Cpg4&list=PLsy9MwYlG1pew6sktCAIFD5tbrXy9HUQ7 "Click to watch on YouTube")

>   [↑ Watch video on YouTube ↑](https://www.youtube.com/watch?v=GLVHDj0Cpg4&list=PLsy9MwYlG1pew6sktCAIFD5tbrXy9HUQ7)

 

 



 


 

[//]: # (header-end)

# @titanium/playservices

[![@titanium/playservices](https://img.shields.io/npm/v/@titanium/playservices.png)](https://www.npmjs.com/package/@titanium/playservices)
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=mobilehero-archive/titanium-playservices)](https://dependabot.com)

> 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.


To provide Google Play Services for Titanium modules and applications




---

* [📝 Description](#-description)
* [🚀 Getting Started](#-getting-started)
* [Install `@titanium/playservices` in root of project](#install-titaniumplayservices-in-root-of-project)
* [Requirements](#requirements)
* [Author](#author)
* [License](#license)
* [✨Features](#features)
* [📚Learn More](#learn-more)
* [📣 Feedback](#-feedback)
* [©️ Legal](#️-legal)

## 📝 Description

This is a repackaging of the compiled iOS and Android modules for [ti.playservices](https://github.com/appcelerator-modules/ti.playservices) to allow for installation via npm.

## 🚀 Getting Started

### Install `@titanium/playservices` in root of project

```bash
npm install @titanium/playservices
```

## Requirements
- Titanium Mobile SDK 7.0.0 or later (release 12/2017)

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}`);
// Use Play Services
} else {
alert(`Play Services is not available.`);
}
});
});

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

...

titanium-playservices

...

```

For a detailed API example please see [android/example/app.js](https://github.com/appcelerator-modules/ti.playservices/blob/master/android/example/app.js)

## Author
Axway

## License
Apache 2.0

## ✨Features

* [x] Includes Titanium native Android module: `ti.playservices 16.1.0`

## 📚Learn More

- [ti.playservices GitHub Repo](https://github.com/appcelerator-modules/ti.playservices) - Repo for ti.playservices module

## 📣 Feedback

Have an idea or a comment? [Join in the conversation here](https://github.com/brentonhouse/titanium-playservices/issues)!

## ©️ Legal

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.