1
ryan4290 2023-10-07 14:40:22 +08:00
核心代码
``` for (packageInfo in packageManager.getInstalledPackages(PackageManager.GET_RECEIVERS)) { if (packageInfo.receivers != null) { for (receiverInfo in packageInfo.receivers) { if (receiverInfo.name == "com.google.firebase.iid.FirebaseInstanceIdReceiver" || receiverInfo.name == "com.google.android.gms.measurement.AppMeasurementReceiver") { val appName = packageInfo.applicationInfo.loadLabel(packageManager).toString() val packageName = packageInfo.packageName var icon:Drawable? = packageInfo.applicationInfo.loadIcon(packageManager); val appInfo = AppInfo(appName, packageName, icon) appList.add(appInfo) break } } } } ``` |
2
xiva1209 2023-10-07 16:23:58 +08:00
我看到淘宝里面有 fcm 相关组件,但是没推送过消息,是要国外 IP ?
|
3
FrankAdler 2023-10-08 15:38:21 +08:00
试了下,跟 libchecker 过滤使用了 firebase 库看到的一样
|
4
limon 2023-10-12 13:49:04 +08:00
这个一般用 fcmfix 了
|