写了个小工具查看哪些 app 支持谷歌 fcm 推送

查看 57|回复 1
作者:NokiaForever   
可以看到你安装的 app 和系统 app 里哪些支持谷歌 fcm 推送,虽然有一些即使支持,可能你是中国大陆账号就不推送消息,比如淘宝、微信。还能支持调出系统日志界面,看看你的手机是否支持 fcm 推送。地址: https://github.com/HappyMax0/FCMPushViewer/releases/tag/1.0.1

fcm, App, 支持, 谷歌

ryan4290   
核心代码
```
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
}
}
}
}
```
您需要登录后才可以回帖 登录 | 立即注册

返回顶部