0

So after updating to iOS 8.3 and xCode 6.3, I'm getting a bug when trying to do an in app purchase. When that Sign In screen pops up, it seems that my game freezes but it doesn't crash. When I click on cancel and that message goes away, none of my buttons work. The frame rate and node count at the bottom of the screen is also frozen and it just sits there until I quit the game.

My in app purchase works fine with iOS 8.2 and lower, but after updating to 8.3 this problem happens. Does anyone know what is going on here?

enter image description here

user2995344
  • 268
  • 1
  • 3
  • 14
  • Anything special happening in `applicationWillResignActive:`? – matt May 03 '15 at 00:03
  • @matt I do have some code to pause the view.. ``SKView *view = (SKView*)self.window.rootViewController.view; view.paused = YES; ((ELMyScene*)view.scene).gamePaused = YES;`` – user2995344 May 03 '15 at 00:15
  • Well, when that dialog appears, you _do_ resign active. – matt May 03 '15 at 00:17
  • @matt I do have code for ``applicationDidBecomeActive`` to set ``view.paused = YES`` to NO. But it seems like it's not getting called. – user2995344 May 03 '15 at 00:19
  • That would be a bug (in the runtime), if the system's presentation of this dialog caused your `applicationWillResignActive:` to be called but dismissal does not cause its `applicationDidBecomeActive:` to be called. If you can verify that, especially if you can verify it in a very very reduced version of your app, you should file a bug report with Apple. (And no, I can't think of a workaround just now, if that is really what's happening.) – matt May 03 '15 at 00:22
  • @matt thank you for the help! i will try with Apple. – user2995344 May 03 '15 at 00:23
  • Thanks for calling it "help" but I'm afraid I did nothing for you. :( – matt May 03 '15 at 00:40

0 Answers0