Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70779

Ionic v4 - Capacitor Plugin "Motion" not working on iOs 13 anymore

$
0
0

@froeschlb wrote:

Hello everyone!

I am using Ionic v4 with Capacitor for a kind of “Tracking App”. So I have implemented a function where the map is rotating with the heading of the users. Therefore I use the Capacitor plugin “Motion”.

Since updating to iOs 13 the Motion plugin couldn’t be found anymore - here the error log from Xcode:
To Native -> Motion requestPermissions 60697268
:zap: Unable to load plugin Motion. No such module found.
:zap: Error loading plugin Motion for call. Check that the pluginId is correct
:zap: [log] - {"__zone_symbol__state":null,"__zone_symbol__value":[]}

And here the code, too:

console.log(Motion.requestPermissions());
this.motionListener = await Motion.addListener(
  'orientation',
   values => {
     ...
  }
);

On Android there is no problem - the plugin and the rotation of the map are working fine.

Thanks for your replies in advance!

Greetings,
froeschlb

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70779

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>