Recently my GCM push message notification didn't work anymore.
I didn't change anything, in my Google API Console, I've registred the IPV6 of my dedicated server if the whitelist IP address.
But when I try to reach GCM service I always get an error :
Unauthorized
Error 401
Also tried with IPV4 without success...
I've tried the same script on my own computer and everything works smooth ...
Any idea would be very appreciate :)
Thanks for your help
You need to put the server IP address in the whitelist ip addresses in google api console for GCM.
Edit:
you must use Key for server apps (with IP locking) instead of browser key.
i have had the same issue for 1 whole day ! but silly me...
in your Dev console>APIs & auth > make sure your "google cloud messaging for android" is ON !
That was my mistake.
And also first test by allowing all IPs.
I had the same issue. What resolved it for me was registering my public ip, waiting for a few minutes and then refreshing the google api console page.
I had the same problem and ended up adding "0::0/0" to my whitelist ip addresses. This fixed the problem for me. Though a better solution would be to get a real IPV6 to use for the server.
Related
hi i have installed the Dante proxy in remote server and trying to connect to in but connection itself is getting failed. Also there is no logs printed in the server.
I have used this socks5 client to connect to the server by giving the server ip address with 9050 port
and applied the fixes suggested in this but no luck
can anyone please help me to identify the issue where i am went wrong to make it successful
Hi I found answer for myself. This is the issue with authentication and firewall issue.
Thanks to buddy for creating this with clear steps and explanation
I'm trying to implement Google Cloud Messaging for my app in development. I'm following the walkthrough located in the readme a this github repository (the official Google sample project). I'm doing everything that's asked, but I'm confused as to how to test this. As far as I know I have the backend running from my computer (I can connect to the backend from localhost:8080 in chrome), but I want to test device registration with an external device (Samsung Galaxy S4). I realize that the device cannot try to connect to 10.0.2.2 because that makes the device think it's connecting to localhost on the phone itself. I tried entering my computer's IP address with both ports 8080 and 80, but the request times out before anything happens. I'm fairly certain I have the correct Server API Key and Sender ID.
Is there anything which might be wrong here? How can I connect to my computer from the phone? I'm willing to post code and/or error logs if needed. Running LinuxMint 17.2 x64.
if you are on same network , just type the internal ip address of the computer followed by port number , you can test it in the browser itself in phone
Fro GCm Testing you not require to do more thing only get your device token and get you project Auth API key from google developer console test using some tool like ,https://gcm.codeplex.com/
and you can copy your device token using edittext,textview or other thing,
I've migrated a web application that sends push notifications to Android apps using Google Cloud Messaging from my local workstation to a server.
Connecting to https://android.googleapis.com/gcm/send worked perfectly from my workstation. My list of allowed IPs in my Google API project includes my server's IP (and I've triple checked it), but when I connect using the exact same API key from the server, I am always getting a 401 (unauthorized) response back from Google.
I am connecting from a Linode VPS, and when I wget the same URL, I can see that it is going over IPV6. I've copied my server's IPV6 address from http://whatismyv6.com/ and also included that in the list of allowed IPs, but still I'm still only getting 401 responses.
My guess is it's related to IPV6, so I'll go ahead and try to force connecting over IPV4- but I'm curious about whether anyone else has experienced this.
Interesting. It suddenly just started working. Out of curiosity, I removed my IPV6 address, tried again and it failed. Then after adding it back, it failed a few times before started working again.
It seems that it may just take a little while for Google to accept the IPV6 address?
I guess I'll leave this question / answer though, in case anyone else experiences it. Make sure your server's IPV6 address is in the allowed list, then just go refill your coffee and try again later.
I'm trying to deploy an application with push notifications. The problem is that I can not get it to work from a device. While using the emulator, everything is ok but when using a cell phone I get a log saying "AUTHENTICATION_FAILED".
I have checked and the Gmail account is synchronized but is always trying to check me out this error.
Could someone give me a hand?
This is occurred due to the bad Google Account password. Check your account on the phone.
Bad Google Account password. The Android application should ask the
user to enter his/her Google Account password, and let the user retry
manually later. Fix on the device side.
Check error codes and explanations here.
The problem was that I had multiple accounts on the phone, for those who have the same problem only has to synchronize with an initial account set up the phone.
In my case I face this problem due to a firewall on the network which blocked URLs and ports of GCM. I solve it temporarily by using a VPN service i.e. Hotspot.
To solve permanently I allowed following ports and URLs on firewall.
5228
5229
5230
All IPs which are listed in Google's ASN of 15169
I have to build a SIP application for my studies, i maked an Asterisk server, testing it with xlite and all is working. However, i wanted to test it in my Android phone(has 2.3 Gingerbread), i installed the SIPDemo app on it, adding the useful informations and nothing happens, it doesn't indicate if you are connected on the server or not. I run the application in the Android emulator and it saids "Registration failed".
Can you please help me? I really have to make this project to have my diploma.
Thank you very much.
from asterisk cli (asterisk -rvvvvvvvvvvv) you should type:
sip set debug on
and then try to register, this will let you debug the situation.
This could be an asterisk configuration problem or wrong SIP registration management on client's side.
If your registration is successful after removing password from asterisk's user then you need to check how SIP handles registration process https://www.rfc-editor.org/rfc/rfc3261#page-56 and stick to those rules with your demo.