Skip to content

Loading…

Error creating an APN::Device #23

Closed
cwoloszynski opened this Issue · 1 comment

1 participant

@cwoloszynski

I am new to this GEM, so please excuse the NEWBIE questions.

I am using the 0.4.1 version. I cannot seem to get a proper ID assigned to any APN::Device I create. I've whittled the problem down to the following steps in the console.

I don't understand what I did that would cause the device to have no ID and fail on the save.

Any thoughts?

poweruser$ script/console
Loading development environment (Rails 2.3.5)
console> require 'apn_on_rails'
=> []

console> app = APN::App.create(:apn_dev_cert => "DEV", :apn_prod_cert => "PROD")
=> #

console> app.save
=> true

console> device = APN::Device.create(:token => 'aaaa', :app_id => app.id)
=> #

console> device.save
=> false

@cwoloszynski

Nevermind. I figured it out. The 'token' must be 8 blocks of 8 alphanumeric digits ALL IN LOWER CASE.

I missed the last part and was trying to use Xs instead of 'x's.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.