cordova-plugin-sign-in-with-apple icon indicating copy to clipboard operation
cordova-plugin-sign-in-with-apple copied to clipboard

Plugin not loading on Phonegap Build

Open Habka opened this issue 5 years ago • 1 comments

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

Habka avatar Dec 11 '19 15:12 Habka

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?

ErichPetersen avatar Jan 27 '20 19:01 ErichPetersen