- Home /
problem with checking application states on android and windows
Hello , my game rely on drag and drop (cards) mechanism IBeginDragHandler, IDragHandler, IEndDragHandler
.. I found a bug that if a player is draging a card and a notification popup (on android) or he accidentally pressed windows key (on windows) the onDrop or endDrag functions will never be called and the card will stuck in wrong position (last drag postion)
when windows key pressed or notification popup OnApplicationPause() and OnApplicationFocus() will not be called .
while I was searching I found this unanswered thread also which has similar problem https://stackoverflow.com/questions/40957499/how-to-tell-if-android-popup-notification-is-opened
Your answer
Follow this Question
Related Questions
onApplicationPause / Focus not executing the full command | Mobile 0 Answers
OnApplicationPause & OnApplicationFocus 1 Answer
Android - OnPause() and OnResume() not working with OnApplicationFocus or OnApplicationPause? 1 Answer
OnDrag methods not being called on Android in Unity 2018.3.5f1 3 Answers
Android screen is small? 0 Answers