How to send Push Notification Message to iPhone using Java?

后端 未结 2 1672
野的像风
野的像风 2021-01-23 15:26

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 suggest

2条回答
  •  野性不改
    2021-01-23 15:51

    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");
    
    
           }
     }
    

提交回复
热议问题