Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

How we authenticate by facebook or google+

$
0
0

ngCordova is not compatible with Ionic2 as many of the services of Angular 2 have changed.

Some quick examples of services that are obsolete in use by the ngCordova oauth plugin include $q and $http as Angular 2 has made a transition away from promise towards Observables.

Plugins which do not rely on Angular are still compatible with Ionic 2- Ones which I have been using for oauth with success are:
cordova-plugin-facebook4 1.1.0
cordova-plugin-googleplus 4.0.5

As far as I can tell there are no available Twitter plugins available.

Here is the ngcordova oauth plugin source in case you're interested in seeing some of the exposed Angular elements that were in use: https://github.com/nraboy/ng-cordova-oauth/blob/master/src/oauth.js


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>