Skip to main content

UDIDManager Class

At startup, this class requests the Google Advertising ID (or Amazon Advertising ID if that fails) and it generates and stores a UDID (unique device ID), and then if no UID (Unique user ID) exists, it generates that based on the UDID. More...

Public Member Functions

void finishUpdateData (final String advertisingId, final boolean isLimitAdTrackingEnabled, final boolean isGoogle)
 Called back after we get the Google advertising id or the Amazon advertising ID.
 
void notification_network_changed (NSNotification notification)
 Observer callback for BFG_CONNECTIVITY_CHANGED_NOTIFICATION. More...
 

Static Public Member Functions

static String amazonAid ()
 Get the Amazon Advertising ID from settings. More...
 
static boolean amazonOptedOutOfAds ()
 Has the user opted out of Amazon's ad tracking. More...
 
static String bfgUDID ()
 
static String googleAid ()
 
static boolean googleOptedOutOfAds ()
 Has the user opted out of advertising for Google. More...
 

Detailed Description

At startup, this class requests the Google Advertising ID (or Amazon Advertising ID if that fails) and it generates and stores a UDID (unique device ID), and then if no UID (Unique user ID) exists, it generates that based on the UDID. The UID used to be retrieved from the DeviceManager service, but that service was deprecated.

Member Function Documentation

◆ amazonAid()

static String com.bigfishgames.bfglib.UDIDManager.amazonAid ()
inlinestatic
Get the Amazon Advertising ID from settings.
Returns
amazon's advertising id e.g. 70686040-f41e-4d8a-89b8-3e7c715a9839

◆ amazonOptedOutOfAds()

static boolean com.bigfishgames.bfglib.UDIDManager.amazonOptedOutOfAds ()
inlinestatic
Has the user opted out of Amazon's ad tracking.
Returns
TRUE if the user has opted out (i.e. NOT advertising enabled)

◆ bfgUDID()

static String com.bigfishgames.bfglib.UDIDManager.bfgUDID ()
inlinestatic
Returns
BFGUDID

◆ googleAid()

static String com.bigfishgames.bfglib.UDIDManager.googleAid ()
inlinestatic
  • This returns null because we don't want to send with Amazon games necessarily
Returns
Google Advertising Id

◆ googleOptedOutOfAds()

static boolean com.bigfishgames.bfglib.UDIDManager.googleOptedOutOfAds ()
inlinestatic
Has the user opted out of advertising for Google.
Returns
TRUE if user opted out of advertising (i.e. NOT advertising enabled)

◆ notification_network_changed()

void com.bigfishgames.bfglib.UDIDManager.notification_network_changed (NSNotification notification)
inline
Observer callback for BFG_CONNECTIVITY_CHANGED_NOTIFICATION.
Parameters
notificationignored