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/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to