适用于Android和IOS应用的同一个Parse项目

时间:2016-06-13 14:32:11

标签: swift parse-platform push-notification

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

enter image description here

当我想发送推送消息时,我只有一个选择系统仅适用于Android。 enter image description here

1 个答案:

答案 0 :(得分:0)

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

let installation = PFInstallation.currentInstallation()

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