LoginSignup
4
5

More than 5 years have passed since last update.

ionic+$cordovaOauthが動かない

Last updated at Posted at 2015-07-16

概要

以下の記事に従い、ionicで$cordovaOauth.twitterを使ってユーザー認証をしようとしたところ、動かない。logにも、console.log(error);部分は何も出力されず、nullになってしまう。

$cordovaOauth.twitter(ConsumerKey, ConsumerKeySecret).then(function(result) {
  console.log('success');
  console.log(result);
}, function(error) {
  console.log('error');
  console.log(error);
});

解決方法

ng-cordova-oauthのIssueを検索したところ、以下の様な記事を発見。

これらによると、ionicのlivereloadを使うな、ということらしい。

livereloadせずにionic:emulate:iosを実行して、正常な処理が行われるようになった。

4
5
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5