2
Android 푸시 알림을 수신하지 못합니다. 나는 Android에서 푸시 알림을 수신하지 않음
- 수 있어요
내가 성공적으로 알림 전송 이벤트에 입력하지만 메시지가 수신되지 나의 기기. 성공적인 푸시 코드는 다음과 같습니다.
string apiKey = "API KEY HERE";
push.RegisterGcmService(new GcmPushChannelSettings(apiKey));
string load = "Hello World";
int count = 2;
string dev = 'device identifier generated for device';
string payload = "{\"alert\":" + "\"" + load + "\"" + ",\"badge\":" + "\"" + count + "\"}";
//IMPORTANT: For Android you MUST use your own RegistrationId here that gets generated within your Android app itself!
GcmNotification note = new GcmNotification().ForDeviceRegistrationId(dev).WithJson(payload);
GCM에 접수되면 휴대 전화에 표시하기 위해 안드로이드 앱 측에서 수행해야 할 작업이있는 것처럼 보입니다. 메시지가 GCM으로 푸시되고 GCM이 메시지를 보냈지 만 안드로이드 앱이 메시지를 표시하지 않습니다. 도와 줘서 고마워. – user1453999