【问题标题】:run application in the background on iOS在 iOS 上后台运行应用程序
【发布时间】:2015-04-25 02:43:27
【问题描述】:

个人,

我正在制作一个使用 Delphi XE7 的移动应用程序。我的系统中有一部分正在发送通知。当我在 iOS 中运行应用程序时,此通知无法在后台运行。当在 iOS 上触发另一个应用程序时,我的应用程序通知停止工作,当我打开我的应用程序时,通知再次恢复工作。

有人可以帮我解决这个问题吗? 当我把 TNotificationCenter 在后台运行?

我尝试使用此代码

UIApp := TUIApplication.Wrap(TUIApplication.OCClass.sharedApplication); UIApp.setIdleTimerDisabled(True); CC := NativeInt(200); UIApp.setApplicationIconBadgeNumber(CC);

【问题讨论】:

    标签: ios delphi notifications firemonkey delphi-xe7


    【解决方案1】:

    【讨论】:

    • 他的例子非常好,但它适用于Android。我需要一个兼容 IOS 的。
    猜你喜欢
    • 1970-01-01
    • 2012-05-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-18
    • 1970-01-01
    相关资源
    最近更新 更多