Note that there are some explanatory texts on larger screens.

plurals
  1. POMDM: APNS notification does not reach iPhone
    primarykey
    data
    text
    <p>A notice does not reach a terminal. Please let me know. Hello. Thank you. </p> <p>iPhone 4S iOS 5.1 I wrote the following ruby script. And it performed from the MDM server. However, a notice does not reach an iPhone terminal. Please let me know. A setup by ."mobileconfig" was completed and the topic and the device token have been PUT to the MDM server. It checked that the right information was also acquirable, It is confirmed that renewal of a message or a badge is made to an iPhone terminal in APNs. Only APNs of MDM does not reach an iPhone terminal. I would like to solve this problem. If you please, please help me. </p> <pre><code>#!/usr/bin/ruby -Ku require 'openssl' require 'socket' (msg = []) &lt;&lt; "dd0b64b77ebcac2092d6fe644d4db04e39d577c0228cf2187d8f87966aff8234" device = msg.pack("H*") socket = TCPSocket.new('gateway.sandbox.push.apple.com',2195) #socket = TCPSocket.new('gateway.push.apple.com',2195) context = OpenSSL::SSL::SSLContext.new('SSLv3') context.cert = OpenSSL::X509::Certificate.new(File.read('nj_dev_apns-dev.pem')) context.key = OpenSSL::PKey::RSA.new(File.read('nj_dev_apns-dev-key-noenc.pem')) ssl = OpenSSL::SSL::SSLSocket.new(socket, context) ssl.connect payload = &lt;&lt;-EOS { #"mdm":"{&lt;PushMagic&gt;}" {"mdm":"7C68976X-E70D-485Q-8CA7-7AC48F2F5F4A"} } EOS (message = []) &lt;&lt; ['0'].pack('H') &lt;&lt; [32].pack('n') &lt;&lt; device &lt;&lt; [payload.size].pack('n') &lt;&lt; payload ssl.write(message.join('')) ssl.close socket.close </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload