Property 'setAppName' does not exist on type 'Backand'


#1

I am trying to connect my Ionic 2 app with Backand.com (Back&). In app.componnent.ts I am receiving below error:

**TypeError: _this.backandService.setAppName is not a function**
**TypeError: _this.backandService.setAppName is not a function**
**    at http://localhost:8100/build/main.js:114613:34**
**    at t.invoke (http://localhost:8100/build/polyfills.js:3:9655)**
**    at Object.onInvoke (http://localhost:8100/build/main.js:36749:37)**
**    at t.invoke (http://localhost:8100/build/polyfills.js:3:9606)**
**    at e.run (http://localhost:8100/build/polyfills.js:3:7019)**
**    at http://localhost:8100/build/polyfills.js:3:4661**
**    at t.invokeTask (http://localhost:8100/build/polyfills.js:3:10284)**
**    at Object.onInvokeTask (http://localhost:8100/build/main.js:36740:37)**
**    at t.invokeTask (http://localhost:8100/build/polyfills.js:3:10220)**
**    at e.runTask (http://localhost:8100/build/polyfills.js:3:7637)**
**    at i (http://localhost:8100/build/polyfills.js:3:3707)**
**    at HTMLDocument.invoke (http://localhost:8100/build/polyfills.js:3:11437)**

I dont understand what is wrong. Code reference from: https://github.com/backand/backand-ionic2-starter/blob/master/src/app/app.component.ts

Below is my code:

constructor(platform: Platform, private backandService:BackandService) {
    platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      StatusBar.styleDefault();
      backandService.setIsMobile(platform.is('mobile'));
      backandService.setAppName('your app name');
      backandService.setSignUpToken('your signup token');
      backandService.setAnonymousToken('your anonymousToken token');
    });

#2

Did you maybe miss this line?