PinDialog not working?

I’ve been trying to use PinDialog. It doesn’t seem to be working though. I’ve tried other native plugins like geolocation and camera and both are working as expected.

I would love to describe more, but nothing at all happens. Nothing in console, nothing on the page.

import { PinDialog } from 'ionic-native';

    platform.ready().then(() => {
      PinDialog.prompt('Enter your PIN', 'Verify PIN', ['OK', 'Cancel'])
      .then(
        (result: any) => {
          if (result.buttonIndex == 1) console.log('User clicked OK, value is: ', result.input1);
          else if(result.buttonIndex == 2) console.log('User cancelled');
        }
      );
    });

Im having the same issue, any luck getting this to work?

No, I haven’t got it to work. Though admittedly I gave up on it and went for a text box instead. :stuck_out_tongue:

If anyone knows how to fix this issue, I would love to know the solution.

I have the same issue, below is my system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v6.9.5
Xcode version: Xcode 8.2.1 Build version 8C1002

1 Like