Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8476267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:07:57+00:00 2026-06-10T18:07:57+00:00

I set up speedy_c2dm to send push messages to android devices. The gem was

  • 0

I set up speedy_c2dm to send “push” messages to android devices.

The gem was working fine, but now I get this NoMethodError message when I call

SpeedyC2DM::API.send_notification(options)

the options parameter is good, I have verified this.
From the ruby-doc I got the following code from the gem:

def get_auth_token(email, password)
  data = "accountType=HOSTED_OR_GOOGLE&Email=#{email}&Passwd=#{password}&service=ac2dm"
  headers = { "Content-type" => "application/x-www-form-urlencoded",
              "Content-length" => "#{data.length}"}

  uri = URI.parse(AUTH_URL)
  http = Net::HTTP.new(uri.host, uri.port)
  http.use_ssl = true
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE

  response, body = http.post(uri.path, data, headers)
  return body.split("\n")[2].gsub("Auth=", "")
end

You can see that the last line uses gsub, so I believe the problem is in the authentication method.

I have changed the password of the account since I created this, I updated the file with the password, initializers/speedy_c2dm.rb:

C2DM_API_EMAIL = "myemail@gmail.com"
C2DM_API_PASSWORD = "mynewpassword"

SpeedyC2DM::API.set_account(C2DM_API_EMAIL, C2DM_API_PASSWORD)

Can this be causing the error? That I changed the password even though I updated this file?
(Google doesn’t let me to go back to the old password, I have to create a new one different from the old ones if I change it again)
Its the only thing I can think of since I didn’t modify the gem’s code.
How can I fix it? C2DM is deprecated now, but its supposed to keep working for old users. I don’t want to migrate to GCM if I don’t need to, everything is set up to work with C2DM

Any other ideas to fix it are welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:07:58+00:00Added an answer on June 10, 2026 at 6:07 pm

    The problem was fixed after I removed the “two step verification” for logging in to my email.

    This change can be made in the account configuration of gmail.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

set(TestProject_additional_libs optimized foobar.lib debug foobard.lib } especially what is optimized/debug mean here? Is this
Set content of table ... ViewState[Table1] = Table1; // When remove this line, table
I think this is a pretty simple question but I'm having trouble finding the
I've got this page that let's you set some filter criteria, and you click
I am trying to send and receive SMS via kannel. I have set everything,
I have this code: jQuery(function( $ ){ // If no speed is set (when
I know how to get a lux value from the light sensor using android.hardware.sensor
I'm building a relatively simple programme to test collision detection, it's all working fine
I'm using this dependencies jquery-ui-1.8.18.custom.min.js (custom but with all jqueryui component) jquery-1.7.1.min.js spinejs 1.0.6
Is it possible to set a property application-wide to double the speed of transitions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.