user836026
user836026

Reputation: 11350

trying to use javapns to send notification to Apple Push Notification Service

I tried to Java pns Package to send notification to Apple Push Notification Service, but it doesn't work

Push.alert("Hello World!", "D:/Development/project/keys/PushChatKey.p12", "password", false, "59188a107d705f8c51585d719769e0642ce98b79d86fdace30dbc58efba301cc");

noting happnes only it display

log4j:WARN No appenders could be found for logger (javapns.notification.Payload). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

any clue is appericated.

regards,

Upvotes: 1

Views: 2819

Answers (1)

shiami
shiami

Reputation: 7264

You should configure the log4j first with the following code.

BasicConfigurator.configure();

Upvotes: 8

Related Questions