twogate / cordova-plugin-sign-in-with-apple

A native-implemented plugin of Sign in with Apple // Thanks to your contribution! // Cordova>=8 iOS>=13
https://www.npmjs.com/package/cordova-plugin-sign-in-with-apple
MIT License
74 stars 48 forks source link

Plugin not loading on Phonegap Build #11

Open Habka opened 4 years ago

Habka commented 4 years ago

I have added the plugin to my config.xml

<plugin name="cordova-plugin-sign-in-with-apple" source="npm"/>

and I'm using PhoneGap version cli-9.0.0

<preference name="phonegap-version" value="cli-9.0.0" />

Whenever I call the plugin code window.cordova.plugins.SignInWithApple.signin(...) I get Uncaught TypeError: Cannot read property 'signin' of undefined

I tried to delete the project and recreating it on Phonegap build, and I get the same error Note: I'm debugging it on iPhone 13.x.x

ErichPetersen commented 4 years ago

Hello Habka,

the problem is in PGB.

See your log and you'll find this message: "Fetching plugin "cordova-plugin-sign-in-with-apple" via npm Installing "cordova-plugin-sign-in-with-apple" at "0.0.1" for ios Plugin doesn't support this project's cordova version. cordova: 7.1.0, failed version requirement: >=8.0.0 Skipping 'cordova-plugin-sign-in-with-apple' for ios"

There are many reports about the cordova 7.1.0 version in cli-9.0.0, at the Phonegap forum.

Did you find a solution for Signing with Apple?