I want to send an app's registration number(which is received by the GCM),straight away to a database table called token_device,when this app is launched. The structure is
id|int(11)
reg_id|varchar(255)
created_at|timestamp
I looked many tutorials that are doing this,but only after the user fills the form and send the data(name,email etc) to the server via a POST request. I don't want to do that. I want the reg_id to be send to the database without any user interaction.
Thanks