Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{"code":"UNIMPLEMENTED"} #2

Open
hallbird opened this issue Jan 27, 2023 · 6 comments
Open

{"code":"UNIMPLEMENTED"} #2

hallbird opened this issue Jan 27, 2023 · 6 comments

Comments

@hallbird
Copy link

hallbird commented Jan 27, 2023

Hello,

I have applied your package, however I am getting this error
⚡️ [error] - {"code":"UNIMPLEMENTED"}

my code is
var device = Capacitor.getPlatform(); SignInWithApple.auth().then((response: any) => { console.log(response); var r = response; }) .catch((response: any) => { console.error(response); var e = response; });

I am really confuse, what could be the error... since it dose not tell much

@wiverson
Copy link
Contributor

wiverson commented Jan 31, 2023 via email

@hallbird
Copy link
Author

hallbird commented Feb 3, 2023

Hello,
as image below,

https://prnt.sc/0w3xRH8kTLhl

and import
import { SignInWithApple } from '@changenode/capacitor-sign-in-with-apple';
import { Capacitor } from '@capacitor/core';

I have tried this , but it showes ..
import {SignInWithApple} from 'capacitor-sign-in-with-apple';

@AhmadRiaz172
Copy link

Having the same issue.

@wiverson
Copy link
Contributor

Unfortunately there are a lot of issues that could be underling what's going on. :P

I've added two things to help. First, here are some notes on how I got things set up:

https://github.com/ChangeNode/capacitor-sign-in-with-apple/blob/main/SETUP.md

And here is the project up to the point where you would start adding the Apple part of Sign In With Apple via the dev portal.

https://github.com/wiverson/sign-in-with-apple-my-app

I would look at & compare the package.json and capacitor config files in particular. Also don't for get to actually run npm update, npm run build, npx cap sync, etc as those commands can pull down the files needed for IDEs (vscode, etc).

@hallbird
Copy link
Author

hallbird commented Feb 17, 2023

Hi ,

Thank you, in fact I have download your code and run same build name/package name, It did work fine...

when get back to my project file ... still shows me same error.... am so confused

Now am sure the issue in project files but I don't know which one or what is the fix... there are so many files

this my package json, I hope you may notice something or any have idea... this not clear error and very confusing and time wasting T_T
{ "name": "xxxx", "version": "0.0.1", "author": "Ionic Framework", "homepage": "https://ionicframework.com/", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/common": "^14.2.9", "@angular/core": "^14.2.9", "@angular/forms": "^14.2.9", "@angular/platform-browser": "^14.2.9", "@angular/platform-browser-dynamic": "^14.2.9", "@angular/router": "^14.2.9", "@angular/service-worker": "^14.2.9", "@awesome-cordova-plugins/email-composer": "^5.46.0", "@awesome-cordova-plugins/google-plus": "^5.45.0", "@awesome-cordova-plugins/spinner-dialog": "^5.46.0", "@aws-crypto/sha256-browser": "^3.0.0", "@capacitor/android": "^4.0.0", "@capacitor/app": "^4.0.0", "@capacitor/browser": "^4.0.0", "@capacitor/core": "^4.0.0", "@capacitor/device": "^4.0.0", "@capacitor/haptics": "^4.0.0", "@capacitor/ios": "^4.0.0", "@capacitor/network": "^4.0.0", "@capacitor/preferences": "^4.0.0", "@capacitor/share": "^4.0.0", "@capacitor/splash-screen": "^4.0.0", "@capacitor/status-bar": "^4.0.0", "@changenode/capacitor-sign-in-with-apple": "^1.0.2", "@ionic-native/core": "^5.0.0", "@ionic-native/facebook": "^5.33.1", "@ionic-native/google-maps": "^5.5.0", "@ionic-native/http": "^5.31.1", "@ionic-native/in-app-browser": "^5.36.0", "@ionic-native/native-geocoder": "^5.31.1", "@ionic-native/network-interface": "^5.31.1", "@ionic-native/photo-viewer": "^5.32.0", "@ionic-native/spinner-dialog": "^5.36.0", "@ionic/angular": "^6.2.4", "aes-js": "^3.1.2", "capacitor-apple-login": "github:rlfrahm/capacitor-apple-login", "cordova-plugin-advanced-http": "^3.1.0", "cordova-plugin-email-composer": "^0.10.0", "cordova-plugin-facebook-connect": "^2.3.0", "cordova-plugin-file": "^6.0.2", "cordova-plugin-googleplus": "^8.5.2", "cordova-plugin-inappbrowser": "^5.0.0", "cordova-plugin-native-spinner": "^1.1.4", "cordova-res": "^0.15.3", "firebase": "^8.2.5", "jetifier": "^2.0.0", "moment": "^2.29.4", "natives": "^1.1.6", "onesignal-cordova-plugin": "^3.3.0", "rxjs": "~6.6.0", "sha.js": "^2.4.7", "tslib": "^2.0.0", "zone.js": "~0.11.4" }, "devDependencies": { "@angular-devkit/build-angular": "^14.2.8", "@angular-eslint/builder": "14.0.0-alpha.4", "@angular-eslint/eslint-plugin": "14.0.0-alpha.4", "@angular-eslint/eslint-plugin-template": "14.0.0-alpha.4", "@angular-eslint/schematics": "14.0.0-alpha.4", "@angular-eslint/template-parser": "14.0.0-alpha.4", "@angular/cli": "14.2.8", "@angular/compiler": "^14.2.9", "@angular/compiler-cli": "^14.2.9", "@angular/language-service": "^14.2.9", "@capacitor/cli": "^4.0.0", "@ionic/angular-toolkit": "^7.0.0", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", "@typescript-eslint/eslint-plugin": "5.29.0", "@typescript-eslint/parser": "5.29.0", "eslint": "^8.18.0", "jasmine-spec-reporter": "~5.0.0", "karma": "~6.3.2", "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", "protractor": "~7.0.0", "ts-node": "~8.3.0", "typescript": "~4.6.4" }, "description": "An Ionic project" }
and capacitor.config.json

{ "appId": "xxx.xxx.xxx", "appName": "xxxxxx", "bundledWebRuntime": false, "npmClient": "npm", "webDir": "www", "SplashScreen": { "launchAutoHide":true, "launchShowDuration": 0 } }

@wiverson
Copy link
Contributor

Hmm, off the cuff you've also got github:rlfrahm/capacitor-apple-login in there...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants