Reputation: 3891
I wrote some messaging code that will deliver local push notifications to the user in a few weeks depending on user behavior. I have tested the notifications by setting them to a much shorter fire after time than they will be in the distribution version of the app. However, I would like to test the final time constants with their 'real' values and simulate time running quickly. Is there a way to do this with Xcode?
Upvotes: 2
Views: 239
Reputation: 3767
You can set the time on your computer while using the simulator, and it should simulate time passing. If you are using a network service to trigger the notification, then you will just have to wait. Also, you could run it on a device, and set the device time.
Upvotes: 2