【问题标题】:How to check for inbox messages from remote server while application is not executing? [closed]如何在应用程序未执行时检查来自远程服务器的收件箱消息? [关闭]
【发布时间】:2016-04-22 17:22:33
【问题描述】:

我将使用 Delphi Seattle 开发适用于 iOS 和 Android 的应用程序。我的目标是用户使用该应用程序在数据库中创建一些约会,然后在每个操作系统平台的默认通知中心确认或重新安排他的约会时得到通知。

所以我想做的是从服务器接收即时消息,而用户目前不使用应用程序就像我们经常收到来自 WhatsApp 或 Gmail 的消息一样打开它们。

在 Windows 中,我可以安装服务或托盘应用程序以在操作系统启动时执行但我如何使用运行 WebBroker Standalone 作为 API 的远程 Windows Server 来进行通信/来自我的移动应用?


注意: 这个问题不是其他提到的问题的重复,因为它涉及在 Delphi 的 Android 的 FMX 框架中做一些事情,而不是 Java 的默认 Android 框架库。第二件事是,我不想使用 Google Notifications Services。 我想做的只是一个在Android中作为服务运行的应用程序,就像windows一样。但是如何创建它以及如何使用 GUI 应用程序安装它?类似于 public class LocationTrace extends Service 但对于 Delphi。

【问题讨论】:

  • Keep Service running的可能重复
  • @NoChinDeluxe 不重复,因为在这里我需要使它适用于 Delphi 的 Firemonkey 框架,而不是 Java。
  • 答案已经在标签中:推送通知!

标签: android ios delphi push-notification firemonkey


【解决方案1】:

Delphi XE6 及以上版本支持推送通知。

这是官方文档:

Mobile Tutorial: Using Remote Notifications (iOS and Android)

还有很多关于 Delphi 推送通知的在线资源。

【讨论】:

    猜你喜欢
    • 2010-12-27
    • 1970-01-01
    • 1970-01-01
    • 2015-12-09
    • 2013-12-14
    • 2014-12-07
    • 1970-01-01
    • 1970-01-01
    • 2014-02-08
    相关资源
    最近更新 更多