@@ -110,45 +110,6 @@ protected void attachBaseContext(Context base) {
110
110
public interface OnAppBackgrounded {
111
111
void onBackgrounded ();
112
112
}
113
- private void loadAdvertisingAndPush (String instanceID , Context app ) {
114
- new Thread (new Runnable () {
115
- @ Override
116
- public void run () {
117
- try {
118
- AdvertisingIdClient .Info adInfo = AdvertisingIdClient .getAdvertisingIdInfo (app );
119
- finishedLoadingPushService ( instanceID , adInfo );
120
- } catch (IllegalStateException e ) {
121
- e .printStackTrace ();
122
- } catch (GooglePlayServicesRepairableException e ) {
123
- e .printStackTrace ();
124
- } catch (IOException e ) {
125
- e .printStackTrace ();
126
- } catch (GooglePlayServicesNotAvailableException e ) {
127
- e .printStackTrace ();
128
- }
129
- String emptyID = "" ;
130
- finishedLoadingPushService (emptyID ,null );
131
- Bundle params = new Bundle ();
132
- params .putString ("pusher_instanceid_not_found" ,emptyID );
133
- AnalyticsManager .logCustomEventWithParams (BRConstants ._20200112_ERR , params );
134
- }
135
- }).start ();
136
- }
137
- private void finishedLoadingPushService (final String instanceID , AdvertisingIdClient .Info adInfo ) {
138
- if (adInfo !=null && instanceID != "" ) {
139
- // setup Pusher Interests
140
- String adInfoString = adInfo .getId ();
141
- String generalAndroidInterest = "general-android" ;
142
- String debugGeneralAndroidInterest = "debug-general-android" ;
143
-
144
- PushNotifications .start (getApplicationContext (), instanceID );
145
- PushNotifications .addDeviceInterest (generalAndroidInterest );
146
- PushNotifications .addDeviceInterest (debugGeneralAndroidInterest );
147
-
148
- //Send params for pusher setup
149
- AnalyticsManager .logCustomEvent (BRConstants ._20240123_RAGI );
150
- }
151
- }
152
113
private static class CrashReportingTree extends Timber .Tree {
153
114
private static final String CRASHLYTICS_KEY_PRIORITY = "priority" ;
154
115
private static final String CRASHLYTICS_KEY_TAG = "tag" ;
0 commit comments