使用Smartface App Studio分析安卓系统中的配置



我正在尝试使用Smartface app Studio将Parse插件配置到我的android应用程序中。我关注了链接http://www.smartface.io/developer/guides/advanced/push-notification-on-parse-services/#before450使用Smartface App Studio 4.5版本。但是,该设备没有通过解析进行注册,甚至没有收到任何失败消息。

谁能帮上忙吗。提前谢谢。

您使用的是Smartface 450,因此您应该检查以下文档:http://www.smartface.io/developer/guides/advanced/push-notification-on-parse-services/#after450

您可以在Global.Smartface.js上使用以下代码来查看它是否注册:

alert("Registration is successful : n" + Parse.getToken("Landroid/app/Activity;"));

在Page1.onShow中,您可以使用如下解析方法:

Parse.onRegistrationFail = function () {
    alert("Parse Registration failed");
};
// if the application is open and receives notification
Parse.onParsePushReceive = function () {
    alert("app opened : nn" + Parse.getData());
};
//if the application is closed and get opened by a parse notification
if (Parse.openedByParseNotification()) {
    alert("app opened by a notification : nn" + Parse.getData());
}

最新更新