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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:05:37+00:00 2026-05-25T23:05:37+00:00

I have been trying to use the server side api provided by Urban Airship

  • 0

I have been trying to use the server side api provided by Urban Airship to integrate with my Android app. I am trying to get all the APIDs registered in Urban Airship server from my Android app. I am getting a Null value always although I have registered 3 devices(emulator registration) and I can view them in https://go.urbanairship.com/api/apids/ after logging in using my app key and secret as username and password respectively.

Urban Airship has provided methods(jave code) to use the server side REST api exposed. Developers have to write their own method for functionalities that are not provided by Urban Airship. there was no method for getting APIDs , hence I wrote this method in line with the other methods.

    public DeviceTokensResponse getApids() throws URISyntaxException
{
    return get(DeviceTokensResponse.class, "/api/apids/"); 
}

I used the same server side api to successfully fetch the iPhone device tokens stored in the Urban Airship server using the api /api/device_tokens/ .
FInd below the code for fetching iPhone device tokens. This is giving the expected results.

    public DeviceTokensResponse getDeviceTokens() throws URISyntaxException
{
    return get(DeviceTokensResponse.class, "/api/device_tokens/"); 
}

I’m sorry for asking a question about a specific product like Urban Airship. I have seen the founders of Urban Airship active in this forum, hence I did not hesitate to post this question. Kindly help me with this.

  • 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-25T23:05:37+00:00Added an answer on May 25, 2026 at 11:05 pm

    I solved it creating a custom class called ApidList.java (which has List property)and Apid.java (which has properties corresponding to json tag key names). Once there is a one-to-one mapping of json key names and class properties , response object is populated correctly. In case the mapping fails, a null object is returned ( that is what happened to me previously)

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

Sidebar

Related Questions

I have been trying to use Server Side Includes on my website to save
Right now I have been trying to use Launchpad's API to write a small
I have been trying to use one View for updating an object and all
I have been trying to use the Perl utility/module "prove" as a test harness
I have been trying to use a formula that is used to work out
I have been trying to use the latest NAnt (0.86 Beta 1) for a
I have been trying to use routes.rb for creating a URL /similar-to-:product (where product
I have been trying to use the hibernate dialect for SQLite from http://code.google.com/p/hibernate-sqlite/ in
I am trying to use the following code, which I have not been able
I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,

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.