【问题标题】:The same Parse project for Android and IOS app at the same time同时为 Android 和 IOS 应用程序提供相同的 Parse 项目
【发布时间】:2016-06-13 14:32:10
【问题描述】:

当我使用已为 swift 应用程序的 Android 应用程序创建的相同 Parse 项目时,它在项目中创建了另一个安装类,因此我无法在 Parse 项目中为 Android 和 IOS 应用程序使用相同的安装类同时,我该如何解决这个问题

当我想发送推送消息时,我只有一个选择 System only for Android。

【问题讨论】:

  • 原始安装类名为“_Installation”。我认为额外的类被命名为“安装”。

标签: swift parse-platform push-notification


【解决方案1】:

我通过使用以下行在 Parse Project 中获取当前安装类解决了问题。

let installation = PFInstallation.currentInstallation()

另一个关于 Android 操作系统的问题,因为我没有将应用程序的证书添加到解析项目中,所以无法向我推送通知。

【讨论】:

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