简体   繁体   English

Android pushwoosh:从通知(带有触发器)启动应用程序时,如何避免显示“使用以下项完成操作”对话框

[英]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.

相关问题 Android:如何使用Dialog避免完整操作 - Android : How to avoid complete action using Dialog 使用完整操作(在应用程序已运行时避免对话框) - Complete Action Using (avoid dialog when app is already running) 当应用程序在后台时,从Android上的Pushwoosh接收推送通知 - Receive push notification from Pushwoosh on Android when app in background 如何在Android的完整动作对话框中避免我的应用程序? - How to avoid my application in complete action dialog in android? 注册一个应用以在Android中使用对话框以“完成操作”中显示 - Register an app to show in 'complete action using dialog in Android “使用完整操作”发送未在Android中显示我的应用的短信 - “Complete action using” to send SMS not showing my app in android 如何在Android中使用Pushwoosh发送自动推送通知 - How to send automated Push notification using Pushwoosh in android 当用户选择一首歌曲&gt;使用对话框完成动作&gt;在我的应用中时,如何获取歌曲详细信息 - how can i get song details, when user chooses a song>complete action using dialog> into my app Android通知完成后如何执行操作? - How do I perform an action when an Android Notification is complete? 新发布时,Pushwoosh Android通知将被替换 - Pushwoosh Android notification is replaced when new come
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM