sending ios voip notification using java-apns(notnoop) -
i trying implement voip notification server using java. tried javapns , java-apns.the problems facing are:
1.with javapns able send voip notification unable receive on device.
push.alert(message,"path/to/voip_certificate_p12.p12", "password",true,"voip_device_id");
2.with java-apns(notnoop)library unable compile code.
i getting error: not initialize class com.notnoop.apns.internal.utilities
tried different java-apns jar versions , slf4j jar versions, getting same error. have gone through post regarding issue not resolve issue.
any great. there library implements push-kit framework in java?
i figured out send voip notifications voip application on ios. able achieve desired result javapns library. here list of things 1 needs do:
get knowledge of type of certificates need , have.if there doubt certificate please clear there , only.
once done #1. double check :p(looks funny highly recommended.50% of problems caused wrong certificates only).
javapns used(i tried notnoop has lot of dependencies). simple use.
push , voip notifiations sent same socket apns. apns reads certificate , key(there different keys push , voip notifications), , decides if needs send normal push notification or voip notification.
you need implement pushkit framework in client(
didreceiveincomingpushwithpayload
method called when voip notifaications received).
the voip message received device , start in background. there wont alert on screen. decide how want use it. generated local notification alert user.
this useful link: stackoverflow.com.
Comments
Post a Comment