Comments (5)
안녕하세요 저 같은 경우는 다음과 같이 사용하였습니다.
this.naver.login()
.then(({ accessToken }) => new Promise(resolve => {
this.naver.requestMe().then(naverMe => resolve(Object.assign({}, naverMe, { accessToken })))
}))
.then(({ accessToken, response }) => {
const { profileImage, name, email } = response;
return this.authProvider.loginNaver(accessToken, profileImage, name, email).map(res => res.json()).toPromise();
})
.then(this.loginSuccessCallback.bind(this))
.catch(error => console.error(error));
from ionic-plugin-naver.
@kotran88
해결 하셨나요?
from ionic-plugin-naver.
감사합니다 ㅎㅎ 수정해서 잘 사용했고 안드로이드는 되는거 확인했습니다~!
답변 달릴까..?라며 질문드렸는데...감사해요.
이제 곧 아이폰으로 네이버 로그인을 할건데 대충 읽어보고 url scheme은 설정했습니다.
xcode는 처음인데..
appdelegate에 추가하는 코드부분에 대해서 여쭤볼께요
appdelegate가 여러가지가 있는데 어디에 코드를 추가해야할까요?
정말 감사합니다! ^^
from ionic-plugin-naver.
appdelegate.h에 추가 안하고 해봤는데 되네요...
그런데..위에 알려주신 코드에서
this.authProvider
this.loginSuccessCallback
은 그냥 타입을 any로 하고 해도 되나요?
from ionic-plugin-naver.
Duplicate of #5
곧 수정되어서 업데이트될 예정 입니다.
from ionic-plugin-naver.
Related Issues (8)
- AppDelegate를 추가하는 방법은 없을까요? HOT 1
- 라이선스 표시 HOT 1
- no value for name 에러 HOT 3
- ionic cordova build android 진행시 문의 HOT 1
- 안드로이드 9.0 버전에서 네아로 로그인시 앱이 종료됩니다. HOT 4
- ios 네이버 앱으로 로그인시 문제가 생깁니다. HOT 4
- iOS WKWebView 대응
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-plugin-naver.