How to use the appcenter-push.isEnabled function in appcenter-push

To help you get started, we’ve selected a few appcenter-push 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 / 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
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 / PushScreen.js View on Github external
async componentDidMount() {
    const component = this;

    const pushEnabled = await Push.isEnabled();
    component.setState({ pushEnabled });
  }
github microsoft / appcenter-sdk-react-native / DemoApp / app / screens / AppCenterScreen.js View on Github external
toggle: async () => {
                    await Push.setEnabled(!this.state.pushEnabled);
                    const pushEnabled = await Push.isEnabled();
                    this.setState({ pushEnabled });
                  }
                },
github microsoft / appcenter-sdk-react-native / TestAppTypescript / src / PushScreen.tsx View on Github external
async componentDidMount() {
    const component = this;

    const pushEnabled = await Push.isEnabled();
    component.setState({ pushEnabled });
  }
github microsoft / appcenter-sdk-react-native / TestApp / PushScreen.js View on Github external
async toggleEnabled() {
    await Push.setEnabled(!this.state.pushEnabled);

    const pushEnabled = await Push.isEnabled();
    this.setState({ pushEnabled });
  }
github microsoft / appcenter-sdk-react-native / TestAppTypescript / src / PushScreen.tsx View on Github external
async toggleEnabled() {
    await Push.setEnabled(!this.state.pushEnabled);

    const pushEnabled = await Push.isEnabled();
    this.setState({ pushEnabled });
  }
github microsoft / appcenter-sdk-react-native / TestApp34 / PushScreen.js View on Github external
async toggleEnabled() {
    await Push.setEnabled(!this.state.pushEnabled);

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

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

appcenter-push

React Native plugin for AppCenter Push

MIT
Latest version published 4 years ago

Package Health Score

52 / 100
Full package analysis