Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

push notification from UrbanAirship not working with live server (i.e. with production key ) in android

In one of my android app, I am using push Notification from Urban Airship.

The problem with the app is that when I am using the development key for the push notification its working perfect (The app get registered & APID generated) but when I am using the production key , It does not work at all(The APID not generated).

However, I have configured the app for production key properly (Like in airshipconfig.properties, 1) set key for production key 2) making inProduction = true.

Still its not working .

I am getting the error :

App name- UAlib Stop connnecting . In a holding pattern.

on logcat, everytime I am trying to connect it with the live server (production key).

Any idea or help on this will be highly appreciated.

like image 830
Dinesh Sharma Avatar asked Nov 07 '11 06:11

Dinesh Sharma


People also ask

How do I get notifications from server on Android?

Create a google API project. Enable push notifications for the project and get a API key. Get a registration ID through android app (each device has a registration ID for a specific application) Create a server application to send your push messages as push notifications through google servers by GSM.

Can Android emulator receive push notifications?

If your target platform is Android, you can test a push notification on an emulator if the emulator target uses a version of Google APIs to receive the push notifications.


1 Answers

I think your free trail period(as you are using the helium transport) for the push notification from Urban airship have been finished. So you have two options: 1) Either you take some paid plan from urban airship 2) Or go for c2dm transport.

The c2dm transport does not need to have any plan.

Hope this will help you.

like image 90
Saurabh Avatar answered Oct 14 '22 08:10

Saurabh