Flutter教程

Jins Meme

Contents

Implementation of the JINS MEME SDK

https://github.com/BlyncSync/cordova-plugin-jins-meme

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic Jins Meme插件的安装(Installation)

ionic cordova plugin add cordova-plugin-jins-meme npm install @ionic-native/jins-meme
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/jins-meme

Ionic Jins Meme插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Jins Meme插件的用法(Usage)

import { JinsMeme } from '@ionic-native/jins-meme/ngx';

constructor(private jinsMeme: JinsMeme) { }

...

this.jinsMeme.setAppClientID(appClientId: string, clientSecret: string).then(
  // Bluetooth should be enabled and the JINS MEME powered on (blinking blue light)
  this.jinsMeme.startScan().subscribe((meme_addr) => {
    this.jinsMeme.connect(meme_addr).subscribe((connectResult) => {
      this.memeService.startDataReport().subscribe((dataReport) => {
        console.log(dataReport);
      });
    });
  });
.catch(console.log('jinsMeme.setAppClientID authentication error'));