Deepu
Deepu

Reputation: 2616

How to send Push Notification Message to iPhone using Java?

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

Answers (2)

Kumar Vivek Mitra
Kumar Vivek Mitra

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

http://developingonandroid.wordpress.com/2011/11/24/3-android-push-notifications-in-parse-a-deep-overview/

Upvotes: 1

Eduardo Sanchez-Ros
Eduardo Sanchez-Ros

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

Related Questions