Skip to content

Commit ad1ad14

Browse files
committed
removing ad_id from player create
Removing getAdIdProvider method from OneSignal.java. We will no longer use ad_id on iOS or Android for player records
1 parent 87ff824 commit ad1ad14

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/OneSignal.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -433,14 +433,6 @@ static OSInAppMessageController getInAppMessageController() {
433433
@Nullable private static OSNotificationDataController notificationDataController;
434434

435435
@Nullable private static AdvertisingIdentifierProvider adIdProvider;
436-
private static synchronized @Nullable AdvertisingIdentifierProvider getAdIdProvider() {
437-
if (adIdProvider == null) {
438-
if (OSUtils.isAndroidDeviceType())
439-
adIdProvider = new AdvertisingIdProviderGPS();
440-
}
441-
442-
return adIdProvider;
443-
}
444436

445437
@SuppressWarnings("WeakerAccess")
446438
public static String sdkType = "native";
@@ -1422,11 +1414,6 @@ private static void registerUserTask() throws JSONException {
14221414

14231415
deviceInfo.put("app_id", getSavedAppId());
14241416

1425-
if (getAdIdProvider() != null) {
1426-
String adId = getAdIdProvider().getIdentifier(appContext);
1427-
if (adId != null)
1428-
deviceInfo.put("ad_id", adId);
1429-
}
14301417
deviceInfo.put("device_os", Build.VERSION.RELEASE);
14311418
deviceInfo.put("timezone", getTimeZoneOffset());
14321419
deviceInfo.put("timezone_id", getTimeZoneId());

0 commit comments

Comments
 (0)