Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unity3d Pushwoosh在Unity的发布版本中不工作_Unity3d_Pushwoosh - Fatal编程技术网

Unity3d Pushwoosh在Unity的发布版本中不工作

Unity3d Pushwoosh在Unity的发布版本中不工作,unity3d,pushwoosh,Unity3d,Pushwoosh,我试着把Pushwoosh和团结结合起来。最新版本需要我在gradle中实际使用pro guard,因为存在多索引错误。之后,由于proguard,出现了重复的文件错误,我通过创建一个pro guard user.txt文件并添加以下行修复了该错误 -keep com.pushwoosh.** {*;} -dontwarn com.pushwoosh.** 现在,当我修复了所有问题并在所有设备中正常运行pushwoosh时,就会出现某些设备,它们在发布版本中不会收到通知。(调试生成没有问题。

我试着把Pushwoosh和团结结合起来。最新版本需要我在gradle中实际使用pro guard,因为存在多索引错误。之后,由于proguard,出现了重复的文件错误,我通过创建一个pro guard user.txt文件并添加以下行修复了该错误

-keep com.pushwoosh.** {*;}
-dontwarn com.pushwoosh.** 
现在,当我修复了所有问题并在所有设备中正常运行pushwoosh时,就会出现某些设备,它们在发布版本中不会收到通知。(调试生成没有问题。)


有人能帮我吗?有什么原因呢?

我找到了答案,似乎这个问题只发生在三星手机上。我四处搜索并尝试将其添加到清单文件中。(对于那些想知道的人,请在“应用程序”标签中。)


<service
    android:name=".FirebaseInstanceIdRouterService">
    <intent-filter>
        <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
    </intent-filter>
</service>

<service
    android:name=".FirebaseMessagingRouterService">
    <intent-filter>
        <action android:name="com.google.firebase.MESSAGING_EVENT"/>
    </intent-filter>
</service>