[英]Android pushwoosh: when launch app from notification (with trigger), how to avoid showing “complete action using” dialog
I have a few apps implemented push notification with pushwoosh.When I send a normal push notification, it works fine. 我有一些应用程序通过pushwoosh实现了推送通知。当我发送正常的推送通知时,它可以正常工作。 If I click the notification it brings me to the app. 如果我单击通知,它将带我到应用程序。 However, when I received a push notification with trigger, when I tried to launch the app from notification center, it asks “complete action using” dialog with a set of apps we have with pushwoosh. 但是,当我收到带有触发器的推送通知时,当我尝试从通知中心启动该应用程序时,它会要求“完成操作使用”对话框以及我们拥有pushwoosh的一组应用程序。 It basically doesn't launch the app. 它基本上不会启动该应用程序。
I have set a filter for the launch activity in ManifestAndroid.xml 我已经在ManifestAndroid.xml中为启动活动设置了一个过滤器
<activity
android:name=".activity.MainActivity"
android:launchMode="singleTask"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="com.xinz.app.MESSAGE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Is there a way to stop showing "complete action using" Dialog, launch the app like normal notifications, and then show the trigger pop up? 有没有办法停止显示“使用对话框完成操作”,像正常通知一样启动应用程序,然后显示触发弹出窗口?
Are you sure you don't have two activities with the "LAUNCHER" category? 您确定您没有“ LAUNCHER”类别的两项活动吗?
As a guess you can try to remove .MESSAGE intent filter, this would let Pushwoosh SDK to try to find the default activity for your app. 推测您可以尝试删除.MESSAGE意向过滤器,这将使Pushwoosh SDK尝试查找应用程序的默认活动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.