【问题标题】:Parse: Sending Push in App from UITextView pushes empty message解析:从 UITextView 在 App 中发送推送会推送空消息
【发布时间】:2014-03-17 09:10:18
【问题描述】:

如果我使用sendPushMessageToQueryInBackground 方法在“withMessage”部分中使用硬编码文本从应用程序内发送推送消息,则设备上会收到推送。

在网站上我可以看到成功交付和我写的文字。

现在我将其更改为从 UITextView 发送内容(例如:withMessage:pushField.text)。

我可以在日志 (Xcode) 中看到文本,甚至 sendPushMessageToQueryInBackground 给了我一个“成功”回复,但我没有收到任何消息。 在网站上,推送已注册,但“警报”内没有消息。 这里有什么问题?

【问题讨论】:

  • 将您的代码添加到您的问题中。没有它很难帮助! :)

标签: ios iphone push-notification uitextview parse-platform


【解决方案1】:

我的错。我在推送 UITextView 内容之前对其进行了重置。真傻:)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多