Re: Re: Apn on Rails gem

Amit Kumar
2010-07-11T19:52:53Z

token is your iphone id

On 11/07/2010, Greg Ma <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> 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.

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