on 08-28-2012 11:26 AM
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
Solved it myself.
Kind Regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
I thought We should open some specific TCP ports on firewall. I dont remember exact ports. Did u do it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
I solved that.
The problem is : wrong server address.
Correct one is : https://android.googleapis.com/gcm/send
Hello,
Does anyone have a solution to this problem?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
Hi,
I am also facing same problem,
where we have to give that Api key in the afaria server configuration,
How you solved?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.