在OS 7中,网站可以使用APNS发送推送通知,我根据下面的链接进行了研究。
http://stackoverflow.com/questions/11604410/is-it-possible-to-send-notifications-to-notification-center-in-mountain-lion-eve
https://developer.apple.com/appstore/push-notifications/index.html
This link gives detail demo of web site notification using s
/*Get the URI that the Microsoft Push Notification Service returns to the Push Client when creating a notification channel.
Normally, a web service would listen for URIs coming from the web client and maintain a list of URIs to send
notifications out to. */
string subscriptionUri =
大家早上好,
我正在开发一个iphone应用程序,提供推送通知服务和位置感知。对于推送通知,一切正常,我能够从web服务器生成推送通知。所以我的问题是:我能用这个场景得到纬度和经度坐标吗?
所以我要做的是每隔1小时执行一次php脚本,使用设备令牌,我会尝试获取坐标,然后根据坐标,它会发送适当的消息,比如"You are X kms from this place“。
非常感谢您一如既往的合作和帮助:)
对rails/heroku非常陌生。我创建了一个干净的项目来帮助弄清楚heroku到底发生了什么。然后我再加上一个:
rails generate controller Pages home contact
显示的正是我们所期望的。提交,推送到git,推送到heroku。打开heroku上的页面,它会返回错误页面:“对不起,出了点问题。”
heroku日志似乎没有任何有趣的东西,exceptional根本不会记录任何不好的事情发生。
更新:我已经将日志简化为一个有问题的部分的例子。
2011-10-06T01:06:05+00:00 app[web.1]: Started GET "/