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 6548163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:55:06+00:00 2026-05-25T11:55:06+00:00

So I have an application which uses C2DM messaging. It’s working perfectly in the

  • 0

So I have an application which uses C2DM messaging. It’s working perfectly in the local server mode when it’s hosted on my computer. When I deploy the application to app engine, however, it no longer works! I’ve been pulling my hair out and can’t figure out why this is.

I’ve tried using the 1.5.2 and 1.5.3 App Engine SDKs and building against 2.3 and 2.4 GWT plugins on Eclipse. None of those seem to work. I can register the phone just fine, but no C2DM messages seem to be arriving to the phone.

  • 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-05-25T11:55:07+00:00Added an answer on May 25, 2026 at 11:55 am

    Okay, so I’ve dug around and I’ve found out that there is a bug with the code as supplied by Google. On the local server, it stores the registration data username with all lowercase (MyEmail@bomb.com -> myemail@bomb.com). On the production server it does NOT use all lowercase to store the email. The following method queries the datastore, providing the email as an argument in all lower case.

    Solution, comment out the indicated line or find a way to use all lower case when saving the email to the datastore upon registration.

    /**
     * Helper function - will query all registrations for a user.
     */
    @SuppressWarnings("unchecked")
    public static List<DeviceInfo> getDeviceInfoForUser(String user) {
        PersistenceManager pm = PMF.get().getPersistenceManager();
        try {
            // Canonicalize user name
    ----->  user = user.toLowerCase(Locale.ENGLISH);
            Query query = pm.newQuery(DeviceInfo.class);
            query.setFilter("key >= '" +
                    user + "' && key < '" + user + "$'");
            List<DeviceInfo> qresult = (List<DeviceInfo>) query.execute();
            // Copy to array - we need to close the query
            List<DeviceInfo> result = new ArrayList<DeviceInfo>();
            for (DeviceInfo di : qresult) {
                result.add(di);
            }
            query.closeAll();
            log.info("Return " + result.size() + " devices for user " + user);
            return result;
        } finally {
            pm.close();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little application which uses regular expressions under VB6. It works perfectly
We have an application which uses an instance of Sql Server locally for its
We have an application which uses WAMP server. Now, there is a new requirement
I have an Android application which uses C2DM services (aka push). I have a
I have an application which uses connection to server via Wifi. When starting the
I have a Sproutcore application which uses CouchDB hosted by Cloudant. In devenv I'm
Here's my problem: I have an application which uses sql server express 2005, and
I have an application which uses Sql Server Express Edition to store data. I
I have existing application which uses Sql server 2005 as a backend. It contains
I have a WPF application which uses a (currently) local database to act as

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.