【What is Apple IM push? What is Apple push?】iMessage push manipulation Apple Push Notification service (APNs)

To help you understand the basic principles and steps of implementing iMessage push:

Developer account: Make sure you have an Apple developer account to access the Apple Developer Center and related tools.

APNs Authentication: iMessage uses the Apple Push Notification service (APNs) to send notifications. In the Apple Developer Center, you need to create a push certificate and associate it with your application. This will allow your application to send push notifications to user devices.
insert image description here
Recommended content related to IMESSGAE
Author ✈️@IMEAE Recommended content iMessage apple push software*** Click to view the author’s requested
content
information IMEAE recommended content 2. Album push *** Click to view the content information requested by the author

bootclasspath", project.android.bootClasspath.join(File.pathSeparator)] log.debug "ajc args:" + array. toString(args) MessageHandler handler = new MessageHandler(true); new Main().run(args, handler ); for (IMessage message: handler.getMessages(null, true)) {switch (message.getKind()) {cas e IMessage.ABORT: case IMessage.ERROR: case IMessage.FAIL: log .error message.message, message .thrown break; case IMessage.WARNING: log.warn message.message, message.thrown break; case IMessage.INFO: log .info message.message, message.thrown break; case IMessage.DEBUG: log.debug message.message, message.thrown break;}}}}
The two provisioning configuration files are distinguished by the fact that they have quite different configuration constraints and use similar relationships. interface IMessage1 {void print(); half-way void getMsg() {/* yes Enable method, jdk1.8 */System.out.println("I am a generic method of interface 1");} static void will succeed later. getMss(){System.out.println("I am the method of interface 1"); }} Class MessageImpl1 struggles to become

IMessage1{@Override public void print()
import sys
print(sys.executable)

{System.out.println(this.getClass(this.getClass( ) ) .GetName());}} public static void main(String [] args) {IMessage1 iMessage = new MessageImpl1(); iMessage.print(); iMessage.getMsg();

MacBookPro:jdk-9.0.1.jdk tony$ javac -version

javac 9.0.1

MacBookPro:jdk-9.0.1.jdk tony$ java -version

java version “9.0.1”

Java™ SE Runtime Environment (build 9.0.1+11)

Java HotSpot™ 64-Bit Server VM (build 9.0.1+11, mixed mode)

MacBookPro:jdk-9.0.1.jdk tony$

  1. To communicate and pay attention to using Apple's delivery service, you need to pay attention to the following events: IMessage1.getMss(); 2. Package overview 2.1 Introduction Use on iOS devices 2) Save locally and add the application package through the account issued by the certificate, ready to use on the device (device with developer account added). // It is recommended to add a marked interface, the interface and class definition must be consistent IMessage {public static final String MSG = "Baidu first issue, you will know"; public abstract void print(); // ambiguous method} Interface INews {public abstract String get();} The MessageImpl class becomes an IMessage. INews {public void print() {System.out.println("The imprint method in IMessage: " + IMessage .MSG);} public String get() {return "INews

Fifth, Apple pushes the C++ server to be the same as PHP, which requires confidentiality certificates and development certificates to integrate CK.PEM. Objc is not an indirect development certificate. In the process with a background C++ engineer. It is used by pushchatkey.pem and pushchatcert.pem as separate files.

Author ✈️@IMEAE recommended content 3. Calendar Push *** Click to view the author's requested content information
Author ✈️@IMEAE recommended content 4. Virtual machine installation is simple *** Click to view the author's requested content information
Author ✈️@IMEAE recommended content 5. iMessage *** Click to view author requirements

The names of pushchatkey.pey.pem and pushchatcert.pem can also be deleted at will

How to use Apple APNS communication? Developers who need an iOS developer provisioning server

Download APS_Production.CER from Apple Developer website;
VBoxManage.exe modifyvm “MacOS10.12” --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff

//MacOs10.12 fake chicken name for you

VBoxManage setextradata “MacOS10.12” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac11,3”

VBoxManage setextradata “MacOS10.12” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0”

VBoxManage setextradata “MacOS10.12” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple”

VBoxManage setextradata “MacOS10.12” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal©AppleComputerInc”

Integrated push service: In your application, integrate push service to realize iMessage push function. This usually involves the following steps: Send message meaning: read the connection register of slave station 1 of the server, the starting address is 0x6B=107, the corresponding address is 40108, the number of registers is 0x02=2, that is, read the holding register of slave station 1 , the address is from 40108-40109, a total of 2 register values.

The returned message format is as follows:

Meaning of the returned message: return the value of the register 40108-40109 held by the server No. 1 slave station, a total of 2 registers, the number of returned bytes is 4, respectively 02 2B 01 06, the corresponding value of 40108 is 0x022B, and the corresponding value of 40109 is 0x0106 .

Modbus does not have a busy mechanism to judge. For example, the master sends a command to the slave, but the slave does not receive it or is processing other things. At this time, it cannot respond to the master, because the Modbus bus only transmits data, and there is no other arbitration mechanism. , so it is necessary to use software to determine whether it is generally accepted.

meaning:

0x01: Address of the slave
0x06: Editing function, modifying the data of the slave register
0x00 0x01: Represents the starting register address of the modification. Explain the modification of the storage content of 0x0000-0x0001
0x00 0x17: The data value to be modified is 0017
0x98 0x04: round-robin redundancy check CRC

The slave recovery message format is as follows:

Start the "Settings" app, and then tap "Messages".

gensees-iMac-2:~ gensee$ lipo -info /Volumes/CaiCai/3.7.9/sdk.ios.3.7.9_20191226/Frameworks/GPUImage.framework/GPUImage You will jump to the keychain access function, we are in SSL The steps in a push relationship are the same.​​ After setting up the device deployment certificate and loading the filter four times, after setting up the device deployment configuration, click "Respect AppID", and then download the button after the program changes, we click "Download". Download, double-click and update the description on the device (it is best to delete all deletions and install later to avoid mistakes).
root@root ~ % reaver
insert image description here

Add push functionality: In Xcode, enable push functionality for your app and set notification types (such as sounds, signs, and prompts).
Register push: When the application starts, register the push service and obtain the device's unique identifier (Device Token).
Send device identifier to server: Send device identifier to your server so that the server can send push notifications to precise devices.
Send a push request to APNs: When you want to send an iMessage push notification, your server will send a push request to APNs, including the identifier of the target device and the content of the notification.
The device receives the push notification: APNs sends the push notification to the iMessage application on the target device, and the device receives and displays the notification.
Server-side implementation: You need to implement the push service on the server side in order to process push requests sent from the application and forward them to APNs. This involves using an appropriate server-side programming language (such as Node.js, Java, Python, etc.) to handle push requests, communicate with APNs, and ensure security and reliability.

Guess you like

Origin blog.csdn.net/IMEAE/article/details/130885566