cancel
Showing results for 
Search instead for 
Did you mean: 

Afaria 7: Android GCM: Fail-GCM Service Not Available

Former Member
0 Kudos

Hi Experts,

We've installed Afaria 7 SP1 and hotfix 2 for SP1 but we cannot send outbound notifications to android devices, because we are always getting following error: Fail-GCM Service Not Available

I've added the GCM service in the google api services, then i created a server key and added a whitelist of ip's: - server ip, ca ip, wifi ip, ...

The project code and api key(from Key for server apps (with IP locking)) were entered in Afaria administrator on the server configuration. I've also checked the checkbox for gcm in the enrollment policy for android. Besides that i have also added the enable seed data in the configuration policy (under android) and here i have entered the server address and GCM project ID.

But still i'm getting the Fail-GCM Service not available error....

I'm I forgotten to do a step in the server configuration? Because in the install guide and or the reference guide this process is not really described into detail.

Thanks in advance!

Kind Regards,

Robin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Solved it myself.

Kind Regards,

Robin

Former Member
0 Kudos

Hi,

Panneels

How you solved?

I'm with same issue

Best Regards,

Angelica Machado

Vivek_Das
Explorer
0 Kudos

Hi Robin,

How did you solve this problem?? I have configured GCM but get the same error when i initate any action.

ONS1010: Error sending GCM message to client , "**********", with Client GUID, "{************}".  The request failed with GCM message: Fail-GCM Service Not Available

************ = Device values

Regards

Vivek Das

Answers (4)

Answers (4)

former_member686053
Active Participant
0 Kudos

I thought We should open some specific TCP ports on firewall. I dont remember exact ports. Did u do it?

former_member686053
Active Participant
0 Kudos

Hi Vivek,

I did your suggestions:

1.

2.

3. Open all ports from Afaria SP1 server to All internet

But still I get: ONS1010: Error sending GCM message to client , "XXXXXXXXXX", with Client GUID, "{YYYYYYYYYYYYYYYYY}".  The request failed with GCM message: Fail-GCM Service Not Available

Hve you any idea what is wrong. By the way My Afaria is : Version 7.00.6080.5

Vivek_Das
Explorer
0 Kudos

I think this is the base 7.0 SP1 Afaria. GCM compatibility for Afaria was introduced later in a Hotfix. You need to install the hotfix for Afaria to be GCM compatible.

I am not sure in which Hotfix was this feature introduced.

Regards

Vivek Das

former_member686053
Active Participant
0 Kudos

I checked hotfixes. A think HF 17 solves this problem..

Let me apply it. Then i will inform you.

thnx

former_member686053
Active Participant
0 Kudos

Now, Afaria Server version is  Version 7.00.6089.2

But i still get same error.

Now have u any idea about what is wrong?

Vivek_Das
Explorer
0 Kudos

Hhhhmmm....Not very sure what could be the problem now.....It should work if all the conditions above are met....can you verify if the GCM API key is correct and working fine??

Regards

Vivek Das

former_member686053
Active Participant
0 Kudos

Let me define something:

Google pages says:

###############################################

Key for browser apps (with referers)


API key: AIzaSyCPpBLABLABLA


Referers: Any referer allowed

Activated on: Jan 30, 2013 10:38 PM


Activated by: my.mail@gmail.com – you

###############################################

Do I have to create Android key? or this one is correct?

And your question: No. I dont knwo how to verify my GCM API key is working.Can u tell me how can i do?

former_member686053
Active Participant
0 Kudos

I solved that.

The problem is : wrong server address.

Correct one is : https://android.googleapis.com/gcm/send

Vivek_Das
Explorer
0 Kudos

Good Have fun

Former Member
0 Kudos

HI vivek i tried everything but no go we do have proxy server in our environment it was working fine but after upgradation to afaria 7 sp2 it does not work

even the url is correct with right data values

Former Member
0 Kudos

Hello Karan,

You can refer this KBA for more information: 2172422

Hope it helps...

Regards,

Vinayak

Former Member
0 Kudos

Hello,

Does anyone have a solution to this problem?

Thanks

Vivek_Das
Explorer
0 Kudos

Hi Jared,

You need to provide the GCM configuration in Server configuration >  Component > GCM server page.

For Android: outbound to GCM, port 5228 to be opened to https://android.apis.google.com/gcm/send

Regards

Vivek Das

Former Member
0 Kudos

Hi Vivek.

I have setup the GCM configuration and in Afaria it says passed in the diagnostics.

I also the firewall on the server is disabled so the port should be open. Is there anything else that you can think of?

Vivek_Das
Explorer
0 Kudos

Hi Jared,

Verify that the values for following field in table A_CONFIGURATION_PROPERTY should be;

C2DMServerAddress = _GCM_ON_https <rest>

C2DMEmailAddress = _GCM_ON_

C2DMPassword = _GCM_ON_

Also verify if your GCM communication is attempting to go out through a proxy. The server might be configured to use a proxy.

Enter an exception in the proxy settings on the server in the Network Setting - Proxy Settings - Exceptions field.

Regards

Vivek Das

Former Member
0 Kudos

Hi Vivek,

Sorry for the stupid question but what table are you talking about when you say "A_CONFIGURATION_PROPERY"?

The company does use a proxy and I have tried with and without the proxy and also with and without the exception setup.

Thank you

Jared

Vivek_Das
Explorer
0 Kudos

Hi Jared,

There is a table A_CONFIGURATION_PROPERTY in your Afaria DB. Please see the values for the following fields in that table are;

C2DMServerAddress = _GCM_ON_https <rest>

C2DMEmailAddress = _GCM_ON_

C2DMPassword = _GCM_ON_

Anyways....add exception to proxy or try without proxy else it wont work (i guess so)

Regards

Vivek Das

Former Member
0 Kudos

Hi Vivek,

I can see that all those values are off.

Can you please give me SQL script that I need to change this?

Should the values be exactly as you saif above?

Vivek_Das
Explorer
0 Kudos

Just update those fields to have value with GCM ON instead of C2DM OFF.

Regards

Vivek Das

Former Member
0 Kudos

ITS WORKING!!

Thank you for the help Vivek!

Former Member
0 Kudos

Hi,

I am also facing same problem,

where we have to give that Api key in the afaria server configuration,

How you solved?