How to use the appcenter.isEnabled function in appcenter

To help you get started, we’ve selected a few appcenter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / appcenter-sdk-react-native / TestApp / app / screens / AppCenterScreen.js View on Github external
async refreshUI() {
    const appCenterEnabled = await AppCenter.isEnabled();
    this.setState({ appCenterEnabled });

    const authEnabled = await Auth.isEnabled();
    this.setState({ authEnabled });

    const pushEnabled = await Push.isEnabled();
    this.setState({ pushEnabled });

    const installId = await AppCenter.getInstallId();
    this.setState({ installId });
  }
github microsoft / appcenter-sdk-react-native / TestApp / MobileCenterScreen.js View on Github external
async toggleEnabled() {
    await AppCenter.setEnabled(!this.state.appCenterEnabled);

    const appCenterEnabled = await AppCenter.isEnabled();
    this.setState({ appCenterEnabled });
  }
github microsoft / appcenter-sdk-react-native / TestApp34 / AppCenterScreen.js View on Github external
async componentDidMount() {
    const component = this;

    const appCenterEnabled = await AppCenter.isEnabled();
    component.setState({ appCenterEnabled });

    const installId = await AppCenter.getInstallId();
    component.setState({ installId });

    const logLevel = await AppCenter.getLogLevel();
    component.setState({ logLevel });
  }
github microsoft / appcenter-sdk-react-native / DemoApp / AppCenterScreen.js View on Github external
async componentDidMount() {
    const component = this;

    const appCenterEnabled = await AppCenter.isEnabled();
    component.setState({ appCenterEnabled });

    const installId = await AppCenter.getInstallId();
    component.setState({ installId });

    const logLevel = await AppCenter.getLogLevel();
    component.setState({ logLevel });
  }
github microsoft / appcenter-sdk-react-native / DemoApp / app / screens / AppCenterScreen.js View on Github external
async refreshUI() {
    const appCenterEnabled = await AppCenter.isEnabled();
    this.setState({ appCenterEnabled });

    const authEnabled = await Auth.isEnabled();
    this.setState({ authEnabled });

    const pushEnabled = await Push.isEnabled();
    this.setState({ pushEnabled });

    const installId = await AppCenter.getInstallId();
    this.setState({ installId });
  }
github microsoft / appcenter-sdk-react-native / TestApp / app / screens / AppCenterScreen.js View on Github external
toggle: async () => {
                    await AppCenter.setEnabled(!this.state.appCenterEnabled);
                    const appCenterEnabled = await AppCenter.isEnabled();
                    const authEnabled = await Auth.isEnabled();
                    const pushEnabled = await Push.isEnabled();
                    this.setState({ appCenterEnabled, authEnabled, pushEnabled });
                  }
                },
github microsoft / appcenter-sdk-react-native / TestApp34 / AppCenterScreen.js View on Github external
async toggleEnabled() {
    await AppCenter.setEnabled(!this.state.appCenterEnabled);

    const appCenterEnabled = await AppCenter.isEnabled();
    this.setState({ appCenterEnabled });
  }
github microsoft / appcenter-sdk-react-native / DemoApp / app / screens / AppCenterScreen.js View on Github external
toggle: async () => {
                    await AppCenter.setEnabled(!this.state.appCenterEnabled);
                    const appCenterEnabled = await AppCenter.isEnabled();
                    const authEnabled = await Auth.isEnabled();
                    const pushEnabled = await Push.isEnabled();
                    this.setState({ appCenterEnabled, authEnabled, pushEnabled });
                  }
                },
github microsoft / appcenter-sdk-react-native / DemoApp / AppCenterScreen.js View on Github external
async toggleEnabled() {
    await AppCenter.setEnabled(!this.state.appCenterEnabled);

    const appCenterEnabled = await AppCenter.isEnabled();
    this.setState({ appCenterEnabled });
  }