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

Ionic Shake error

$
0
0

@Giallo wrote:

Hi guys, I tried using shake plugin for my app, the code i wrote(actually the code I saw on official documentation page) is

 const watch = this.shake.startWatch().subscribe(() => {
      alert('shake!');

    });
    watch.unsubscribe();

the error i keep getting is:

plugin.js:168 TypeError: Cannot read property 'stopWatch' of undefined

Can u help me see what am I missing here?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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