简体   繁体   English

应用被杀死时的静默推送通知

[英]Silent Push notification when app is killed

在此处输入图片说明

I want to update status/flag without calling web service, so i implemented silent push but if app is killed then silent push will not updating my status/flag. 我想在不调用Web服务的情况下更新状态/标志,因此我实现了静默推送,但是如果应用被杀死,则静默推送将不会更新我的状态/标志。 Please tell me the other way to handle this situation. 请告诉我另一种处理这种情况的方法。

If your app is killed, there is nothing you can do about that situation. 如果您的应用程序被杀死,那么您将无能为力。 Push will come through, but it won't automatically start the app and if its a silent push, well then you have zero chance of getting that app to start back up. 推送将通过,但是它不会自动启动该应用程序;如果它是无提示推送,那么您将有机会使该应用程序重新启动。

You can do one last call to a web service just before the app gets terminated - but you have seconds to do it, so not ideal. 您可以在应用终止之前对网络服务进行最后一次呼叫-但是您需要几秒钟的时间,因此并不理想。

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

相关问题 当应用程序处于终止状态时,iOS静默推送通知不会收到 - iOS Silent Push Notification does not receive when app in killed state 应用被杀死时是否收到 iOS 静默通知 - Is a iOS silent notification received when the app is killed 使用Firebase发送静默推送通知以唤醒应用程序(如果被杀死) - Send silent push notification using firebase to wake the app if it was killed iOS - 处理应用程序时处理静默推送通知 - iOS - Handling Silent Push Notifications When App Is Killed 应用程序被杀死时的 iOS 推送通知 - iOS Push Notification When app is killed 应用程序被杀死时调用的推送通知方法 - Push Notification Method called when app is killed Linphone(3.16.3)iOS应用程序推送通知在应用程序被杀死时不起作用 - Linphone(3.16.3) ios app push notification not working when app is killed 杀死应用程序后按下推送通知后,应用程序崩溃 - App crashes after push notification is tapped when app is killed 当app在后台时,使用React Native进行无提示iOS推送通知 - Silent iOS Push Notification with React Native when app is in background 当应用程序处于后台时,在静默推送通知时显示用户通知 - Display Usernotification upon silent Push Notification when app is in background
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM