我的应用程序的一部分目前允许使用的UIDatePicker用户安排约会发送推送通知。他们按一个按钮,我的后端确实与日期一些工作来存储约会数据,然后我用下面的代码发送推:解析iOS的 - 在特定的时间
NSString *objectID = [NSString stringWithFormat:@"user_%lu", (unsigned long)self.salespersonObject.userID];
PFPush *push = [PFPush new];
[push setChannel:[NSString stringWithFormat:@"%@",objectID]];
NSString *message1 = [NSString stringWithFormat:@"%@ sent you an appointment request. Visit your profile in the app to confirm", self.currentUser.fullName];
NSDictionary *data = [NSDictionary dictionaryWithObjectsAndKeys:
message1, @"alert",
@"Increment", @"badge",@"default",@"sound",
nil];
[push setData: data];
[push sendPushInBackground];
什么我不知道...有没有使用任何方式解析iOS SDK以设置推送的特定时间?我想也在这种方法中添加一个推送发送1小时之前的UIDatePicker日期说,像“提醒你的约会x在1小时内”
在此先感谢!