fcmfix icon indicating copy to clipboard operation
fcmfix copied to clipboard

扩大 isFCMIntent 的范围

Open RichardLuo0 opened this issue 1 year ago • 3 comments

以微信为例,他其中有如下相关intent filter:

com.google.firebase.MESSAGING_EVENT
com.google.firebase.INSTANCE_ID_EVENT
com.google.android.c2dm.intent.RECEIVE

我也不确定能不能解决什么问题,只是感觉这样比较保险

RichardLuo0 avatar Sep 30 '24 13:09 RichardLuo0

startsWith​(​"com.google.firebase."​)​ 这个范围太大了吧,改成匹配后缀吧。 另外根据 #153 也要兼容MicroG的情况不要com.google前缀

kooritea avatar Oct 03 '24 09:10 kooritea

startsWith​(​"com.google.firebase."​)​ 这个范围太大了吧,改成匹配后缀吧。 另外根据 #153 也要兼容MicroG的情况不要com.google前缀

改了一下,不过我看他microg也是com.google开头的 https://github.com/microg/GmsCore/blob/2149212967ed0038a8b22f60726ecc39476e5c96/play-services-basement/src/main/java/org/microg/gms/gcm/GcmConstants.java#L20

RichardLuo0 avatar Oct 03 '24 11:10 RichardLuo0

虽然我还是保持原来的后缀匹配了

RichardLuo0 avatar Oct 03 '24 12:10 RichardLuo0