I have asked this question on the Apple DevForums, too.
If I get an answer there, I'll share it here, too.
The problem is:
We have installed the same AdHoc app on our iOS 4 (good thing that we didn't update all of them to iOS 5) and iOS 5 devices.
The PN is received on the iOS 5 device, but nothing happens on iOS 4.
We triple checked everything on the server, in the app and on the devices. Still it works only on iOS 5.
Did anyone encounter this issue?
Thanks!
Also you will not receive Push notification if your iPhone is jail-breaked.
And it's good idea to check are you using developing or production certificate and device token.
Did you check wether you use the right APN certificates?
You should make sure that you use the right certificate to the right address.
The sandbox mode is not the same as release mode. So you will get from the apple server 2 different push token.
To make sure wether you are doing correctly, I suggest you to try http://mobiforge.com/developing/story/programming-apple-push-notification-services
Sometimes the Push also delays till 1 hour. Keep this in mind.
Related
If I use 4.2 iOS device such as 2nd gen iPod touch, products show up.
if I use 5.1 iOS device such as iPhone 4s, no product(s) shows up.
Anybody having same issue? I'm testing this in the sandbox environment.
Thanks in advance for any help!
The in-app purchase sandbox is so temperamental. If your code is working on 4.2 and not on 5.1 then the problem is probably one of your environment - there is a long list of things that can go wrong.
This guide was the best help I found on the net around in app purchases and highlights the problems with the API and testing:
http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/
The #1 problems I had were:
Not signing into the right iTunes sandbox account on the testing device. Always check.
Deleting the app off the device, clean build, reinstall. This was very important.
Check your in-app purchase codes are right.
Interpreting a failure as something wrong with my app. Sometimes a failure meant that the sandbox wasn't responding (cannot connect to itunes store). I would run the same code the next day and it would work. The sandbox doesn't give enough error information for you to know if the sandbox failed or your app code or some mismatch with in-app code data. Put as much debugging log statements in your code to check the response from the server and whether product codes are returned on initialization.
Good luck - it is a very irritating developer experience
I am using APNS service in my universal app (iPhone/iPad) and i am not geting notifications on device. Previously i was getting notifications perfectly but now a days with the same code at server side and client, it is not working.
On server side notification status is delivered but i am not receiving it on my device.
I have checked most of the questions on stackoverflow but i was unable to find my question. one guy said that in development environment it may have delays, but my problem is that i am not receiving notifications at all.
Note: i am using sandbox environment not production.
Just in case you haven't found a solution yet, one additional thing you could check is if your device's date and time is properly set (in the OS). If your iPod, iPhone or iPad isn't set to the current date, we found that notifications are ignored silently. Of course, there are many other possible explanations as to why your service stopped working, but this is a simple thing to check when everything else appears to be fine.
Following are the things you can check
Check the entitlements while codesigning the app. (They can be seen in Xcode build log).
Check whether notifications are on for the device in the settings menu.
If you are using corporate network on the iOS device, the push notifications might be blocked. Try using a different network.
After launching the app, check the organizer for any logs with the reason why push notifications can not be enabled.
I hope some of this helps you out.
I just revoke my certificates
Uploaded new certificates deleted all provision from my organizer
and then created new provisions and installed them on my system.
At the same time I got my APNS working.
I have a strange problem with my iPhone app.
I use geolocation and push notification. Everything is ok, but I want to test from scratch on the iPhone (connected to xcode debugger)... and I can't re initialized the iPhone.
I explain: I remove the app from the iPhone, and after re-installing the app (with xcode or with iTunes), I launch the app, but iOS doesn't ask me to approve geolocation and push notification as it does the first time. In fact, it seems to 'remember' my choices.
As I need to debug this (Some users have problem on running app the first time), I'm blocked.
Thanks by advance for yours answers
There's a place in the Settings app to reset Location permissions.
There are already a couple of questions on this but I followed their steps to solve it and it doesn't seem to work for me. Here's what I have done:
1. I double checked to have the bundle identifier in the xcode project to be the exact same as the provisioning profile found on the provisioning portal (it also says Game Center is enabled). No wildcards.
2. I have logged in using a sandboxed account to gamecenter (made 2 accounts incase one wasn't sandbox). I did see the word "sandbox" with some numbers/letters on the top left while signing up for an account, so I'm 100% sure I have a sandboxed account. Tried 2 different sandbox accounts. Tried on 2 different devices (ipad/iphone). Also tried on the iPhone simulator.
3. I have deleted my app from my iPhone many times and tried it again.
I'm running 4.3/xcode 4 on iPhone + iPad.
I'm still receiving the message. Any help would be appreciated. Thanks!
From memory (I battled with this recently)…
In addition to what you've already done, you have to setup your app (even if it's using a fake bundle ID) in ITC (iTunes Connect). This means you need to put in a name, category, a screenshot and a bunch of other stuff (you can just put dummy data in there for testing purposes). Then you need to create a version of your app, then enable Game Center on that version.
There might have been a few other important steps that I've forgotten, but in between the voodoo dancing and making sacrifices to the gods of iOS etc., that's all I can recall.
Deleting the old app from your device can sometimes help too. Looks like it stores some data with an app and will try to login to actual Game Center instead of Sandbox Mode.
This solved my problem when trying to add Game Center in an update.
This is how I solved the problem. I opened the Settings App, then select Game Center. At the bottom under Developer, turn on "Sandbox".
I had a similar problem. Make sure you have the exact same app version in xcode and ITC. For example, if you have 1.0 in xcode and 1 in ITC it will not work. The version is a string not a float, so 1.0 != 1.
My situation is , It showed "this game is not recognized by game center",and my ipad is jail-broken. so I uninstall Appsync 5.0+ in Cydia--> logout game center---> reinstall app, it's ok now
In my case, almost everything people had suggested was in already correct for my app.
My bundle IDs were correct, my iTunes Connect record was set up, etc. However, the version number of the build that had been uploaded to iTunes Connect was not recent (and didn't match the version I was building onto the test device).
After uploading a newer build to iTunes Connect with a matching version number, it appeared to fix the problem.
I'm not guaranteeing it won't break in the future (because the authentication seems to be very flaky and has worked previously, even with the old version record), but for now it seems to have solved the problem for me.
I learned from somewhere that if your machine(iphone or ipad) is jail-broken, it will assume you use the real game center without the sandbox one.
So, if your devices are jail-broken, just restore it, and give it a try.
Hope this will help you.
HEllo,
I am quite new to iphone development, I am following the specified steps to test app on my device.
I have two provisioning profiles outof which none are expired. These profiles aare working fine on 3.0 devices, but when I try on 2.0(iphone) devices it says application could not be verified.
I am using snow lepord and it doesnot provide simulator support below 3.0 thats why I have to test my app on devce.
Can you help me regarding this.
Thnx in advance
edit:
ok I think this one is done but now its showing "Failed to upload MyApp.app" due to which app appears in iphone but I cannot debug my code.
I have checked the tick box in entitlements.plist
Google is your friend here.
Two good articles right off the bat...