Commit ef95a92e authored by wanglei's avatar wanglei

[修改]修改上报事件

parent a0ed3168
......@@ -30,6 +30,7 @@ import com.tgv.malware.business.push.fcm.FCMManager
import com.tgv.malware.business.push.notification.MyNotificationManager
import com.tgv.malware.ui.splash.SplashActivity
import com.facebook.appevents.AppEventsLogger
import com.tgv.malware.business.helper.EventUtils
import com.tgv.malware.business.push.receiver.AlarmReceiver.Companion.startAlarm
import com.tgv.malware.business.push.receiver.ScreenStatusReceiver
import com.tgv.malware.business.push.timer.TimerManager.Companion.changeTimer
......@@ -98,9 +99,14 @@ class MyApplication : Application() {
}
private fun initGid() = MainScope().launch(Dispatchers.IO) {
try {
val info: AdvertisingIdClient.Info = AdvertisingIdClient.getAdvertisingIdInfo(applicationContext)
val advertisingId = info.id
AppPreferences.getInstance().put("gid", advertisingId)
} catch (e: Exception) {
EventUtils.event("gid_exception")
}
}
override fun attachBaseContext(base: Context?) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment