Reputation: 2616
I want to send a Push Notification message to particular iPhone device using Java.
I dont have any idea how to do this.
I have googled on this, they have suggested to use "PayLoad" class but not getting this class from any jar files.
Please anybody can guide me to send the push notification message to iPhone suing Java?
Upvotes: 1
Views: 8354
Reputation: 33534
Use parse sdk from www.parse.com
, it helps in delivers a good way to handle push notification between ios and android(offcourse its java). Its really simple to work along with it..
The example on the parse.com site is not good for android, so i am giving the link of the site where the steps are much easier to work with
Upvotes: 1
Reputation: 1827
Use JavaPNS. Here is an exaple:
import javapns.Push;
public class PushTest {
public static void main(String[] args) {
Push.alert("Hello World!", "keystore.p12", "keystore_password", false, "Your token");
}
}
Upvotes: 1