# Mobile functionality not working

**URL:** https://discourse.processing.org/t/mobile-functionality-not-working/18362
**Category:** Coding Questions
**Created:** [March 3, 2020, 7:32pm UTC](https://discourse.processing.org/t/mobile-functionality-not-working/18362 "2020-03-03T19:32:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![SheCurvesMobius](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shecurvesmobius/32/7054_2.png) [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)
#### Post date: [March 3, 2020, 7:32pm UTC](https://discourse.processing.org/t/mobile-functionality-not-working/18362/1 "2020-03-03T19:32:40Z")

</div>

Hi all,

I’m interested in starting to use the mobile functionality with p5, but when I check the examples on their site:

[https://p5js.org/examples/mobile-tilted-3d-box.html](https://p5js.org/examples/mobile-tilted-3d-box.html)  
[https://p5js.org/examples/mobile-acceleration-color.html](https://p5js.org/examples/mobile-acceleration-color.html)  
[https://p5js.org/examples/mobile-shake-ball-bounce.html](https://p5js.org/examples/mobile-shake-ball-bounce.html)

The sketches load but don’t function as they should (when I move my phone nothing happens).

Does anyone have insight on this? I’m using an iPhone 7 Plus.

Thanks!  
Tori

---

<div class="post-metadata">

### Author: ![Sven](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sven/32/8293_2.png) [@Sven](https://discourse.processing.org/u/Sven)
#### Post date: [March 5, 2020, 9:22am UTC](https://discourse.processing.org/t/mobile-functionality-not-working/18362/2 "2020-03-05T09:22:19Z")

</div>

Hello Tori

When Apple released Safari 13 for iOS, they made it mandatory to ask the user for permission before getting access to orientation and motion data. It’s a privacy thing.

There’s an [open issue to handle this in the p5.js project](https://github.com/processing/p5.js/issues/4037). Until then, you could probably work around it yourself: [How to Request Device Motion and Orientation Permission in iOS 13](https://medium.com/flawless-app-stories/how-to-request-device-motion-and-orientation-permission-in-ios-13-74fc9d6cd140).
