Apple Push Notification service SSL (Sandbox & Production) - What am I doing wrong?
<p>I am developing a application for IOS 8, 9 and 10, which should receive push notifications.</p>

<p>The certificate for push notifications has been created by using the option “Apple Push Notification service SSL (Sandbox &amp; Production)”, but unfortunately when I try to receive the push notification from the Sandbox environment, the notification I'm getting.</p>

<p>In particular, what I do is this.</p>

<ol>
<li>Generate Push Certificate with the following option to the “Apple Push Notification service SSL (Sandbox &amp; Production)”</li>
<li>Start XCode</li>
<li>I connect the device (iPod IOS 9.3.5) to the Macbook Pro.</li>
<li>The startup project d XCode.</li>
<li>NSLog("tokenString: (tokenString)")</li>
<li>The device token is successfully registered.</li>
<li>Sending the notification from the Java class, but unfortunately, the push notification I don't receive it</li>
</ol>

<p>If, instead, generate, the ipa (XC Ad Hoc), and then I install everything through iTunes, the device token is successfully registered and when I send the push notification from the same Java class with the same Certificate, the push notification i receive it.
What am I doing wrong ?</p>