Re: Apn on Rails gem

Greg Ma
2010-07-11T16:17:49Z

Amit Kumar wrote:
> Hi,
>
> Try this, i did it same way
>
>
>>> device = APN::Device.create(:token => "XXXXXXXX XXXXXXXX
XXXXXXXX
> XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX")
>  >> notification = APN::Notification.new
>>> device.id= ''xxxxxxx''
>  >> notification.device = device
>  >> notification.badge = 5
>  >> notification.sound = true
>  >> notification.alert = "foobar"
>  >> notification.save
>    *
> I tried the same way in my console.. See APN: Notifications table and
> the
> device id will be in APN: Device table.
> *

Thank you,
The device id is the iphone ID ? or the token is the iphone ID?
When I save the notification, it device isnt storein the database ...
???

--
Posted via http://www.ruby-forum.com/.