다음은이 튜토리얼을 따릅니다. http://intown.biz/2014/04/11/android-notifications/ 노드/각도/phonegap/ionic 앱을 개발 중입니다. 노드 -gcm을 사용하여 알림을 보냅니다. 그러나 나는 tuto의 일부를 이해하는 데 어려움을 겪고있다. 코드, 안드로이드 응용 프로그램 코드의 마지막 부분에서는 볼 수노드/phonegap/ionic을 사용하는 Android 푸시 알림
registerID : function (id) {
//Insert code here to store the user's ID on your notification server.
//You'll probably have a web service (wrapped in an Angular service of course) set up for this.
//For example:
MyService.registerNotificationID(id).then(function(response){
if (response.data.Result) {
console.info('NOTIFY Registration succeeded');
} else {
console.error('NOTIFY Registration failed');
}
});
그래서 내가 바로, 사용자의 ID를 얻을 것이다 (여기이면 MyService라고 함) 서비스를 코딩 할 필요가?
문제는 : 나는 모든 것을 이해하지 못한다. 어떤 ID인지는 모르겠다. 그것은 안드로이드 장치의 ID입니까?