저는 Java Developer이지만 최근에 BlackBerry Push Service 구현과 관련된 프로젝트가 있습니다. 내 목표는 Push Initiator 즉 콘텐츠 제공자를위한 서버 측 구현을 작성하는 것입니다. 하지만 이것을 테스트하려면 일부 샘플 푸시 가능 앱을 사용해야합니다.시뮬레이터에서 BlackBerry PushService SDK를 테스트 할 수 없습니다.
나는 BB 개발자 가이드를 통과하고 단계 아래 수행 한 :
BB 푸시 서비스 평가 API에 대한 등록과 같은 모든 필요한 세부 사항을 확인 메일을받은 : APPID, PWD, PPG URL BIS, 포트 번호 등
저수준 푸시 이미 터 (예 : 웹 앱 콘텐츠 제공 업체) 용 BB 푸시 설치 프로그램과 샘플 푸시 지원 앱 (PushDemo_sample은 BB 푸시 서비스 개발자 가이드에서 사용 가능)을 설치했습니다.
protected void execute() throws Exception {
// first we register with Content Provider
Logger.log("Reached RegidterCommand execute() method .. but eacapingCMD_SUBSCRIBE");
//ContentProviderProtocol.performCommand(ContentProviderProtocol.CMD_SUBSCRIBE, username, password, isEnterprise, tx); // commented
// if the registration is successful we register with BPS
Logger.log("Now Going to register with PPG");
BpasProtocol bpasProtocol = PushLibFactory.getBpasProtocol();
bpasProtocol.register(tx, isEnterprise);
// update the registered state
PersistentStorage.setRegistered(true);
}
하지만 레지스터를 클릭 적절한 APPID, PortNumber이와 BPS 서버 URL, 더미 푸시 개시 응용 프로그램 URL과 응용 프로그램을 구성한 후에
는, 그것은 몇 가지 IOException가 표시되어 다음에Command 'register' failed with error: java.io.IOException: could not find a service book entry for IPPP.
여기
Opening URL: http://cpXXXX.pushapi.eval.blackberry.com/mss/PD_subReg?serviceid=XXXX-sxxxxxxxxxxxxxxxxxxxxxxxxxxxx&osversion=7.1.0.318&model=9900&deviceside=false&ConectionType=mds-public
난 그냥 다시 시도하고있다 : 시뮬레이터에서 응용 프로그램 로그를 좀 같이 파라미터가 아래 URL 후 추가로이 BB 푸시 평가 URL을 열려고하는 것을 볼 수 있습니다 BB Push 서버로 내 시뮬레이터를 개자식하십시오. 시뮬레이터에서 푸시 서비스를 테스트 할 수 있습니까? 또는 나는 틀린 무엇인가하고있다?
그리고 샘플 푸시 앱의 PushLib50 클래스의 register() 메소드가 평가 URL 다음에 추가 매개 변수를 추가하는 방법에 대해 한 가지 더 의심 스럽습니까?
도와주세요. 푸시 서비스를 구현하는 데 잘못된 것이 있으면 알려주십시오.
시뮬레이터에서 테스트 푸시 알림을 사용할 수 없습니다. 당신은 그것을위한 실제 장치가 필요합니다. – Signare