简体   繁体   English

PushWoosh-自定义推送通知

[英]PushWoosh - Customizing push notifications

I'm checking the example in PushWoosh's FAQ section: Customizing Push Notification 我正在检查PushWoosh的“常见问题”部分中的示例: 自定义推送通知

It states that 它指出

The last step is to set your notification Factory to the Push Manager: 最后一步是将通知工厂设置为推送管理器:

pushManager.setNotificationFactory(new ActionNotificationFactory());

But it doesn't mention where this should be set.. Any idea? 但是它没有提到应该在哪里设置。

You can just set this at the very start of your app. 您可以仅在应用程序的开始进行设置。 This will make sure that all the push notifications will be handled by your push notifications Factory. 这将确保所有推送通知都将由您的推送通知工厂处理。

Please make sure your Factory uses default constructor only (without any extra parameters), as this way it will be created when the push notifications comes in the background. 请确保您的工厂仅使用默认构造函数(不带任何其他参数),因为这样,它将在推送通知进入后台时创建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM