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

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.

Related

How to convert Ionic mobile to web app

Say I have an existing mobile app built on Ionic. Now I need to have a website version of the app so users can access it via desktop too.
Is there any documentation that suggest this is possible?
I think you're looking for Progressive Web Apps. Ionic does cater for such, just google for the term "Ionic PWA" example below.
http://blog.ionic.io/navigating-the-world-of-progressive-web-apps-with-ionic-2/
https://blog.saddey.net/2016/07/03/using-docker-to-create-ionic-2-pwa-developer-environment/

Login facebook with 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.

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.

Using trigger.io with GAE

I want to try using trigger.io.
We have a Web App and using GAE.
How can we test our Web App with trigger.io?
I see that on the "WEB" section of the toolkit there's only a spot for "Heroku".
Is it possible?
Do we need to migrate?
How can i test our web app with android? I couldn't find a place to direct it to our index.html.
Thanks a lot.
The web section in the Toolkit basically lets you deploy your mobile app as a mobile website, based on Node.js.
If you have an existing web app that you'd like to use as the backend for a mobile app, then it's a case of exposing some sort of HTTP API which your mobile app then interacts with.
Having the mobile app just receive JSON from GAE, build its HTML views and present them to the user works really well.

Deploying PlayFramework Application to Google App Engine

For my new project I am planning to use PlayFramework and Google App-Engine. I was trying to create a sample application in playframework and tried to deploy it to app-engine.
it says the application is deployed successfully, but when I hit the url of my application
it shows a message "Your application is ready", But does not show the home page of my application.
I am using Play Framework 1.2 and GAE-1.4 plugin. I tried to deploy the application using the plugin and also using "appcfg".
The application works fine in local development mode but as soon as I deploy it to app-engine, the home page is replaced by "Your application is ready" message.
Can u guys tell me if I am doing anything wrong with the deployment of play-framework? I tried searching if anybody faced similar kind of issues in both google and SO but was not able to find any help.
Also, I read some post that GAE plugin does not work with Play-Framework 2.0(Note : I am using Play 1.2 in the above example) . I would like to know How can I deploy a play2.0 application in appengine.
Thanks a lot in advance!!!
Did you add application name and version number in appengine-web.xml before deploy?

Resources