Hello devs,
I'm scheduling local notifications on a weekly base. At the app launch, I check if the weekly notification is delivered. If so, I want to reward the player whenever he comes back to the game.
The problem (only on iOS) is that it can successfully deliver local notifications but, apparently, it doesn't recognize delivered notifications. The strangest thing is that this works perfectly if I'm running the app from xCode, but it's not working if I'm playing the game on a iOS device while not debugging to the xCode console. So I also don't have any convenient way to debug this out.
----------
Edit: Oh, I've discovered now the useful Console tool that I can use to see debug logs of my iPhone without necessarily running it from xCode. What is even stranger is that even with the mere Console tool it's working properly, and it's still not working if my iPhone is instead not sending logs anywhere...
----------
You can find my code [here][1].
[1]: https://forum.unity.com/threads/i-can-access-local-delivered-notifications-on-ios-only-if-connected-to-xcode.1414293/
↧