No response after requesting Touch - Motion & Orientation permissions

0 favourites
  • 3 posts
From the Asset Store
Elevate your games with our AI Chatbot Integration! Seamlessly connect your Construct 3 projects with GPT-4 for dynamic,
  • As controller support on mobile isn't working at the moment, I thought I'd try controlling my game with the mobile's sensors and built a quick test harness:

    drive.google.com/file/d/15uTTQvS-RgYV_vkC-Jpw5DXbnhiEDun6/view

    Exported to Xcode and tested on my iPhone

    Essentially, when the screen is touched, it requests both Motion and Orientation permissions.

    This iOS alert then pops up:

    I select Allow, but nothing happens.

    The project should pop up an alert after each permission is requested and if either permission is granted or denied, and if the former, should start displaying readouts from all the sensors on the screen. But none of these alerts are displayed and nothing happens if I tap the screen again - it's almost as if it hangs as soon as permission is requested.

    Am I doing something wrong?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Tested on an Xcode iPhone 15 simulator with the same result.

    Then tested (as a debug APK) on the BlueStacks emulator on Windows) - this seems to work - I get four alerts (2 request permission alerts and 2 permission granted alerts) although I didn't get an alert from the OS like I do on iOS. Also, if I tap the screen again, I get the alerts again confirming that the app is still responding to inputs unlike on iOS.

  • Thanks to Ashley for solving this.

    If you request both permissions on iOS, it doesn't work but you only need to request one and both will be requested and, if the user agrees, will be granted.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)