Login facebook with angularjs - angularjs

Well, I am doing a login my facebook application angular js + ionic. Everything is fine but I need to see the possibility that if there is a facebook application installed on the device to open the application and do not need to login. There is that possibility ?. I am using the library OpenFB of angularjs.

No, even if the Facebook App is installed, you will have to authorize. Remember, you donĀ“t authorize Facebook, but you authorize your specific App.

It is possible, but not with OpenFB, you can use phonegap-facebook-plugin, it deals with native integration with the Facebook app if that's the case or use a webview just like OpenFB if the app is not installed.
Be aware that if you install it from Cordova Registry (using cordova plugin add https://github.com/Wizcorp/phonegap-facebook-plugin.git --variable APP_ID="123456789" --variable APP_NAME="myApplication") you should fix FacebookSDK.framework symlink on Xcode for it to work on iOS.
Read more details on the oficial documentation.

Related

How to combine ReactJs, Auth0 and Cordova?

I've built a web app using ReactJs, with auth0 for authentication. Now, when I use Cordova to wrap it up and create a native application, I face an issue due to the redirection done by Auth0 for authentication.
I've tried creating a native app in auth0 and using the "react-cordova" package to properly build and wrap the react app into a Cordova app, but the issue still persists.
Good morning! My name is Jim Morrison and I'm a part of the Auth0 Community team. Are you seeing any breakdown in your auth0 logs? We have a this Community maintained Cordova quickstart that you could check against your current implementation to see if everything looks to be in it's place. I hope this helps but if it doesn't be sure to let us know!
https://auth0.com/docs/quickstart/native/cordova/01-login

Ionic + Phonegap Build app : facebook and google login, using native apps

Can someone point me to a plugin or a code snippet to implement both Facebook and Google login in my Ionic + Phonegap Build app ?
It must also work as a pure webapp (in a desktop browser).
I would like this feature to be able to log from the native facebook or google+ apps that the user has already installed on his device, so he doesn't need to retype his id+password. But, if these apps are not installed, the code must fallback on the normal login process.
My app communicate with a cloudant database using pouchDB in case you need this information.
(I have to use Phonegap Build because I don't work on a mac).
Thanks
Facebook:
https://github.com/Wizcorp/phonegap-facebook-plugin/
Google login:
http://community.phonegap.com/nitobi/topics/implementing_google_login_in_a_phonegap_app
Try these two links ,it will work.

Explain Cordova project + angularJS, phonegap project, ngcordova

I'm confused about these technologies. Actually i want to build a mobile application with SQLite database for offline as well as should support webApi services or something. So it should support both SQLite and server which targets IOS, Android and windows.
I did some R&D and gather some knowledge about cordova and angular.
I like to use angular on my mobile application so that i can manage my client side data and app flow easily and wisely.
Now i'm confused whether to use cordova or phonegap or ngcordova (which i recently came to know that it exists).
As i mentioned, i want a mobile app with SQLite and support webApi services and also should support multiple platforms.
So now where/how to start and which is best one for me. i'm developing this app for production i mean real time app.
please help to start with.
This is my email id jprasanth74#gmail.com if you have any guide please share it..
Cordova is use for create build in different platforms
you have to start write code in angular.js
just use this sample link
https://blog.nraboy.com/2014/09/implement-barcode-scanner-using-ionic-framework/
to create first app and send me your email i will send you the startup guide line to create enviroment with cordova and ionic framework
ionic framework is support angularjs and cordova both in one package and it is very faster then other framework
http://ionicframework.com/
just dive me the email address i will send you the basic startup

Recommended development environment for Cordova / AngularJS / Ionic

I am getting started with building "hybrid" mobile apps using Cordova and AngularJS with Ionic. I am able to build out a sample app by creating the html, js and css files locally and running these in a browser using file:// url's. This works fine, and when ready I can run the cordova build process and run the app in the android emulator or deploy the apk to my device. This all works fine for my simple demo apps. But now as I start to build out an app which will use an Angular service to either load JSON from local storage (if offline), or load the JSON from a remote REST API, I am running into problems. As I am developing, opening the app from a file url (file://myapp/index.html) will result in the browser not being able to make an http call to the REST service (different origins, etc).
This seems to be a very basic issue - so my question is, how do others develop and test Cordova apps in general? Do you always develop with the "www" files on a web server, like Node? If so, does the issue of http:// requests from file:// url's become a problem when you use those files in the Cordova app?
CORRECTION: I am able to access remote REST services from a page on the local file system, as long as the remote service includes "Access-Control-Allow-Origin" header. So, I think that answers my question. I can develop with all of my html and js on local file system, have the JS make remote calls, and test by running in a browser using file:// url's. But is this generally the development environment in which you would develop a Cordova/PhoneGap app?
I can recommed Intel XDK ( fromer app mobi)
http://xdk-software.intel.com/
It has a good emulator(s) on desktop and can
It works fine with ionic framework and angular extensions ( just comment out the cordova.js
script and add intelxdk.js
<!--<script src="cordova.js"></script>-->
<script src='intelxdk.js'></script>
It can also cloud test with a wrapper app and cloud build for appstores
Works fine so far so I can recommend this
I like AppGyvers ( sterois) platform too but it does not work so good on android yet
For Cordova apps, I start development locally on my machine with Chrome. I have to run Chrome with disabled security (allowing cross origin).
On OSX, you can run Chrome with security disabled by running the following terminal command (make sure Chrome is fully closed first).
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security --allow-file-access-from-files
Once I get to a point where I need to start integrating Cordova Plugins, I then build out the Cordova project and test with an Android tablet (the Android emulator is horrible). For remote web debugging on Android, I use weinre.
I never personally build out or test my code on a web server, it's always local on my desktop or mobile device. I make all web service calls via jQuery's Ajax.
There are many hybrid app development tools out there. However, if you are looking for developing a hybrid app (phonegap + angularJS + backend), I would like to recommend Monaca. I've just recently discover it. It is very cool since it has phonegap inside its framework and its own backend. Moreover, it also has a UI framework called OnsenUI which is based on Topcoat and AngularJS.
It also provides native components to use in your hybrid apps. What is impressive about it, you don't even need to build and install your app to your device everytime during development. That's what I love the most about this.
I hope it helps since I think it is just like what you are asking for. I'm just a novice developer and I find it is very easy to use.
take a look to visual studio tools for cordova cordova-vs, it include ripple emulator and a lot of good stuf
update:
i recently found this ide neodym , it looks promising

How to build a native mobile app for a joomla site

I am about to build a mobile app using html5 with phonegap. So that i can easily install it on any platform. Android, Blackberry or ios.
I want this app to be able to perform CRUD - in close connection with my joomla site.
The Joomla site is already completed, its a social network. I need this app to be able to retrieve information such as profile pictures, messages e.t.c and then be able to upload pictures, send messages and use the geolocation api.
My question is i dont know how to make the app connect or communicate with my Joomla db.
Well i found the answer, just in case anyone needs it.
To build a mobile using Joomla as the server, what you need is
1. Jquery
2. Build an extension on your Joomla site
3. Using the jquery ajax methods + Joomla's native method to provide data in Json format, you can build an api to send and receive data from your mobile app to your joomla website.

Resources