When I load the APP using Xcode, push notifications work nicely, if I load it on the device using iTunes, push notifications do not work: I always receive a "[1] Invalid token" error when trying to sent a push notification to the device from backend. I noticed the pushId app receives in the two cases (loaded through Xcode/loaded though iTunes) are different.
Perhaps when loading the app through iTunes it automatically receives a production pushId? If this is the case, is it possible to load the app through iTunes so that is has a development pushId?