Google Play Services (GPS) Plugin

This plugin allows the SDK to:

  • Register/Unregister to GCM using GooglePlayServices (Deprecated)
  • Retrieve and send to Accengage the Google Advertiser ID (IDFA) automatically
  • Retrieve a location using GooglePlayServices (SDK 3.1.x), i.e. be respectful of battery life
  • Monitor geofences using GooglePlayServices (SDK 3.1.x)

Plugin installation

The Google Play Services Plugin 4.1.x is splitted in 4 parts:

  • Push Plugin: Add the possibility to use InstanceId API to register to pushs. Add the following line in your build.gradle dependencies:
implementation('com.ad4screen.sdk:plugin-play-services-push:x.y.z')
  • AdvertiserId plugin: Add the possibility to get the AdvertiserId. Add the following line in your build.gradle dependencies:
implementation('com.ad4screen.sdk:plugin-play-services-advertiserid:x.y.z')
  • Geofence plugin: Add the possibility to monitor Geofences. Add the following line in your build.gradle dependencies:
implementation('com.ad4screen.sdk:plugin-play-services-geofence:x.y.z')
  • Location plugin: Add the possibility to use Google Play Services location. Add the following line in your build.gradle dependencies:
implementation('com.ad4screen.sdk:plugin-play-services-location:x.y.z')

If you want to use all plugin parts, just add the following line in your build.gradle dependencies:

implementation('com.ad4screen.sdk:plugin-play-services:x.y.z')

Check plugin installation

In order to know if the plugin works and is used by the SDK, please activate the SDK logs and look for the following line:

GCM Plugin Found. Registering to GCM using plugin