Oops yes updated it, i guess i copied the link while creating the reply.
I checked that stack mentioned there, and i only understand it partly, but i think far enough to use it in my own stack.
The rest i don't understand at all and where he got all this info.
But i can confirm that this works.
I created a really simple stack which registered at a test project at google's gcm server.
I inserted the projects token and the registered device token in the stack on the mentioned page, and within 2 seconds i got the pushnotification.
Great !
Unable to manage GCM notification
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Unable to manage GCM notification
Ok while this seems to work as on this link viewtopic.php?f=53&t=12864&p=131241#p131241 i am having strange behaviour of livecode?
i am getting the devicetoken from the database.
And just before i do a push, then i send a message via php-script to another database, this message will be visible in the android app.
I read it out in the windows app so i know it has been written ok to the database
The push is just to let the user know there is a new message.
This all works ! just once....
after that one time the message (not the push) is not being sent anymore to the database but just gone...
When i remove the stack from memory and close the Livecode IDE---> restart Livecode and open and start the stack, it all works again...once.
there is something that livecode does not like.
The same stack i still have without the push parts from above link just keeps working without any problem.
So in fact i don't see any problem in the stack itself, because all works, but with push just once.
any idea?
i am getting the devicetoken from the database.
And just before i do a push, then i send a message via php-script to another database, this message will be visible in the android app.
I read it out in the windows app so i know it has been written ok to the database
The push is just to let the user know there is a new message.
This all works ! just once....

after that one time the message (not the push) is not being sent anymore to the database but just gone...
When i remove the stack from memory and close the Livecode IDE---> restart Livecode and open and start the stack, it all works again...once.
there is something that livecode does not like.
The same stack i still have without the push parts from above link just keeps working without any problem.
So in fact i don't see any problem in the stack itself, because all works, but with push just once.
any idea?