| | |
| | | import com.alibaba.sdk.android.push.noonesdk.PushInitConfig; |
| | | import com.alibaba.sdk.android.push.noonesdk.PushServiceFactory; |
| | | import com.alibaba.sdk.android.push.register.MiPushRegister; |
| | | import com.alibaba.sdk.android.push.register.OppoRegister; |
| | | import com.google.android.gms.common.ConnectionResult; |
| | | import com.google.android.gms.common.GoogleApiAvailability; |
| | | import com.google.firebase.messaging.FirebaseMessaging; |
| | |
| | | initAutoSize(); |
| | | // //初始化极光推送 |
| | | // initJPush(); |
| | | // //谷歌原生fcm推送 |
| | | //谷歌原生fcm推送 |
| | | // // 检查 Google Play Services 后再初始化 FCM |
| | | // if (isGooglePlayServicesAvailable(this)) { |
| | | // initFCM(); |
| | |
| | | // HdlLogLogic.print("Google Play Services 不可用,无法使用 FCM", true); |
| | | // // 可以在这里初始化备选推送方案(如阿里云自建通道) |
| | | // } |
| | | //阿里云推送 |
| | | // //阿里云推送 |
| | | initAliYunPush(); |
| | | initHDLLinkPMSdk(); |
| | | HDLLinkLocalSdk.getInstance().init(getInstance()); |
| | |
| | | pushService.setLogLevel(CloudPushService.LOG_DEBUG); |
| | | } |
| | | //小米 |
| | | //appKey/appSecret在小米开发者平台获取 |
| | | MiPushRegister.register(this, "2882303761520382032", "5612038223032"); |
| | | // OPPO通道注册 |
| | | //appKey/appSecret在OPPO开发者平台获取 |
| | | OppoRegister.register(this, "d80747c83e38442aaa2e5183c310bae0", "86afce21417b49a4984816024b15d4b9"); |
| | | |
| | | } |
| | | |