just so you understand :
- your app (apk) use google cloud messaging (gcm) and need to be registred, it's the api key (server key) and project id
in google developper console, there is an expiration date but mine is still working 6 months after this expiration, this is why i think it's free to use, at leat for small use
- each android device which has the apk register itself with google : it's the registration id (reg id) and is unique for each device
your third party app need to send a notification with the server key and reg id to google servers
google servers relay it to your android device and not another one
(there is a way to send a notification to all devices with an app installed)
getting the reg id of your android device is a big problem...
let me talk of what is inside the archive :
1/
third party app to read chatlog (remember it's for FF14 and it's still unfinished)
when a tell or a say is parsed, it use a curl command to send it to google servers (with your key and your reg id).
of course, you need to change them in the code
2/
apk will get a notification
to send a response, you can't use gcm because a third party app is still not "gcm friendly" : your apk need to send your response directly to your third party app
so you need to use port forwarding in your router and make the third party app listen on this port
in the code i provide, there are 2 ip adresses where i can choose to send response (because i can play in 2 places)
of course, you need to change google project id and ip addresses in the code
Look at the example i provide :
1 : from game, i made a /say
it's send to my phone
2 : from game, i made a /tell to myself
it's send to my phone
3 : from my phone, i send to myself "ok"
my phone send the message to third party app
third party app send the message
4 : since i send a message to myself, i receive a new /tell, and it's send again to my phone
It's just a proof of concept.
I made this in 2 weeks from start : learning eclipse, java and i use a lot of code from google site.
It's really a small job to make it work with FF11 and add others fonctionnalities (linkshell...)
http://gilles.boulon...r/ff/14/gcm.rar
i'm not working anymore on this but i can talk about it and the code.