안드로이드 푸시 재질문

net.iamyellow.gcmjs 모듈을 이용해 안드로이드용 푸시를 구현하고 있습니다.

Device의 토큰값을 DB에 넣고 그 토큰값을 이용해서 구글의 GCM서버로 보내 메세지를 날릴려고 하는데 error: ‘MismatchSenderId’ 이런 에러가 뜨네요.
node 서버에서 sender id 값을 넣는곳이 없는데 저런 에러가 나오니.. ㅠ.ㅠ 뭐가 뭔지 모르겠습니다. 혹시 안드로이드 개발자등록을 안하면 이런 경우가 생길수도 있는건가요?

경험 있으신 분들의 노하우좀 부탁 드립니다.
감사 합니다.


Facebook Group's likes and commnets
JongEun Lee liked this post

http://stackoverflow.com/questions/13727585/android-gcm-send-and-mismatchsenderid

Apparently, when you recompile your app it will sometimes throw off the device id generation to where it won’t match a previous id.

What I have to do is a COMPLETE uninstall of the app on my phone and recompile the app again (via eclipse). This seems quite pathetic, but it’s the closest to a workable solution I have at the moment..

이런 답변이 있어서 기존 device token도 지우고 개발폰에서 앱도 삭제 한 후 재컴파일을 했더니 기존 token값과 다른 값이 들어 가더군요. 그리고 나서는 push가 문제 없이 되고 있습니다. ^^

겪었던 문제와 해결방법에 대해서 적어주시면 같은 문제를 겪는 다른분에게 도움이 될 것 같습니다.^^

하하.. 문제를 풀었습니다. ^^