I mean device.id represents your token from apn_devices table.
---
Regards,
Amit Kumar
Ruby On Rails Consultant
+91  9890654102
Blogsite: http://amitbaraik.blog.co.in/

This e-mail is confidential and may be legally privileged. If you are not
the intended recipient, please notify the sender immediately and delete this
e-mail.

?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????




On 12 July 2010 01:22, Amit Kumar <[email protected]> wrote:

> token is your iphone id
>
> On 11/07/2010, Greg Ma <[email protected]> wrote:
> > 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]<rubyonrails-talk%[email protected]>
> .
> > For more options, visit this group at
> > http://groups.google.com/group/rubyonrails-talk?hl=en.
> >
> >
>
>
> --
> ---
> Regards,
> Amit Kumar
> Ruby On Rails Consultant
> +91  9890654102
> Blogsite: http://amitbaraik.blog.co.in/
>
> This e-mail is confidential and may be legally privileged. If you are
> not the intended recipient, please notify the sender immediately and
> delete this e-mail.
>
>
> ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
>

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