I am writing a chrome extension that will receive messages from my application. I have managed to write code to retrieve the push messaging channel id in my extension. Now I need to send this channel id to my application and link it to an account so that I know what user this channel id belongs to.
I have been thinking about the best way to do this. So far I am convinced that I should send the channel Id in a GET request to my application and then ask the user to login via OAuth so I can get their email address and I know who they are.
Is there a better way to implement this?