0

我是第一个在 Smartface App Studio 上开发的移动应用程序。我有这个问题。

1-我看到这个错误:Access violation at address 00000000. Read of address 00000000添加第二个数据集时。并且在删除数据集之前不会在模拟器或 USB 真机上运行应用程序。

2- 我阅读了 Local.Notifications 指南,但无法在手机屏幕上运行通知。我将日期保存到表格中,但无法将它们作为提醒。我应该在哪个页面添加功能块以及我应该如何执行此操作。

谢谢。

4

1 回答 1

0

添加数据集时似乎出现问题。您是否尝试过第二个项目?它似乎适用于可通过帐户页面下载的最新版本的 Smartface App Studio。

本地通知不会添加到日历/提醒中。这些是特定于应用程序的通知。

首先,您应该创建一个本地通知。

例如;

var localNotification = new Notifications.LocalNotification({
        id : id,
        fireDate : new Date(),
        alertTitle : "AlertTitle",
        alertBody : "Alert Body",
        smallIcon : "icon_notification_small.png",
        launchImage : "icon_notification.png",
        sound : "notifsound.mp3",
        repeatInterval : Notifications.CalendarUnit.minute,
        onReceivedNotification : function (e) {
            alert("onReceived");
        }
    });

它会为您创建一个通知,并在给定日期工作。

如果您想立即显示通知,您应该在下面运行该代码;

Notifications.local.presentNotification(localNotification);
于 2015-01-16T12:41:42.250 回答