I am currently developing a mobile application using the ionic framework. We recently decided to begin integrating social logins into the application. Soon after adding google oauth, a notification indicating a deprecation of oauth requested through webviews in 2016/17 began appearing. After researching the error I found the following article. From my understanding cordova is run entirely using web views.
Does this mean authentication via oauth in an Ionic / Cordova app will now be impossible for both Android and iOS? I have been researching for an entire day trying to find a work around ( Getting a call back from the system browser to my ionic application ) to no avail.
Does anyone have any experience or similar concerns who could share their experience with this news?
Thanks all
Some explanations from the Ionic team :
http://blog.ionic.io/google-oauth-changes/
Looks like the ionic team has pulled down this article: http://blog.ionic.io/google-oauth-changes/
Hopefully it will be back up soon.
For now, refer to this plugin, which I am almost positive was the recommendation:
https://github.com/EddyVerbruggen/cordova-plugin-googleplus
Related
Marketing specialists keep instructing my client to setup the analytics so that it can track where the user is being referred from so that we can optimize the advertising campaigns.
When I ask them how to setup the tracking correctly they send me to a link for the native Android & iOS google analytics libraries and provide the settings. I respond in kind stating that our app is not built using the native SDK's it is built using the Ionic Framework. They then have no response for this.
I have Google Analytics implemented as well as Facebook analytics. Both systems are actively tracking data. But apparently it is still not tracking the source of which advertising campaign the user originated from and / or installed the app from.
I've tried to find an example of this somewhere and talked to numerous people but from what I can tell it is not possible using the Ionic Framework.
Can anyone provide some insight into this? If this is not possible it seems like a rather large issue with the Ionic Platform that should be made more visible.
Thank you!
I'm looking to build a mobile application using Meteor+Cordova. Looking to get the Facebook login to work first. Apparently the default accounts-facebook package doesn't work so I looked around atmosphere and only found "particle4dev:cordova-fb", so I tried using that.
I'm a bit confused about the app developer stuff. Normally I just use it for my website so its quite straight forward. In terms of setting up the login details (such as ID and token), do I register as if it's an IOS app? Or do I still register as if its web?? It asks me to download XCode SDK for FB, is that what I'm supposed to be doing? is the package mentioned above what I should be using, or are there more mainstream options available?
I was also facing problem with accounts-facebook package. It was using in-app cordova browser and failing at the time of oauth handshake.
I added cordova:com.phonegap.plugins.facebookconnect#0.11.0 to app and enabled it for single sign on from developer account on facebook.
If you face any problem then please look at my blog here. I have written a simple tutorial.
If there are still some people to fix this thing, this may help them.
I've just used the latest version on github.
removing the plugin and adding it again like this:
meteor add cordova:com.phonegap.plugins.facebookconnect#https://github.com/Wizcorp/phonegap-facebook-plugin/tarball/d8b0f6935a7c6e586188bf85f9da88a1c160790b
This above code with particle4dev:cordova-fb worked like a charm on android and it should work on ios devices also. It seems they fixed the issue in their updates.
accounts-facebook package works fine. I just created a new project and tried, you can refer to this screencast http://recordit.co/7JNpDSzJ9m
if you are using accounts-facebook, you need to register the app as web on fb
So I've been trying to use particle4dev:cordova-fb for awhile now. For those who are confused about how to implement it. First you add it as a package to your existing app. Then you add the facebookconnect cordova plugin. Then you add the android platform. Then try and run the android platform (meteor run android --settings settings.json). This should fail. Now go through the steps on implementing facebookconnect on Android. This should make sure it works on android now. However even after doing all of this and getting it to work, it still simply opens up the in app browser on android for some reason.
I am using the Cordova official Facebook plugin and run into a weird issue...
The login process, which previously worked just fine for me, is now open in some native Android "black-screen" view without any styling.
The functionality works just fine - the authentication process succeeds, so there is a consistent connection with Facebook. The thing is, I am expecting a Facebook view instead of only the text content without any styling. Here is an example with Facebook native Hackbook app:
Tried running on two different devices - the issue remains.
Tried with cordova 2.2.0, then started a fresh project with 2.5.0 - the issue remains.
Please advice.
UPDATE:
Well, I have spent too much time on this issue, and it seems like this is the new Facebook SDK for Android.
I really wish I am wrong here, but here are examples from Facebook's flow for Android:
https://developers.facebook.com/docs/howtos/androidsdk/3.0/login-with-facebook/
Also - when checking the other sample apps in the SDK, all of them behave the same. The only one that shows a Facebook page is the Hackbook, and by it might be because this app is implemented with the old API (version 2):
https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/
Hackbook: another sample app demonstrating a selection of Graph API calls. Note that this sample is untouched from v2.0 of the SDK, and demonsrates the SDK's backward-compatibility.
UPDATE 2:
Ok, digging a bit more into it, it seems that there is no iframe involved here, the screen can be changed as you wish with a regular android activity theme added to the activity.
Here is an example of adding one of Androids default themes to the androidMenifest.xml (you can of course create your own Faceboke like theme ):
<activity android:name="com.facebook.LoginActivity"
android:theme="#android:style/Theme.Black.NoTitleBar"
android:label="#string/facebook_login" />
I'm developing an app using cordova phonegap 2.5.0 and I want to implement both sharing in iOs and facebookConnect. I'm using Sharekit 2 + Sharekit Plugin for phonegap and i'm having no issues with the sharing, but some trouble with facebook connect. I can make the connect itself using the built in function:
facebookConnect( );
and it seems to work, but I need to retrieve the facebook Uid after the connect.
Any suggestion?
Maybe this can help somebody else...
Because I can't find any documentation about my question I managed to solve in this way:
Use the official facebook SDK and facebook connect plugin - Instruction here https://developers.facebook.com/ios/ and here https://github.com/phonegap/phonegap-facebook-plugin - for the facebook connect. It is full of example and pretty simple to implement.
Added sharekit to my project with granular install - Instrutions here https://github.com/ShareKit/ShareKit/wiki/Granular-install - avoiding to installa the facebook part.
Added ShareKit Plugin - Instructions here https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/ShareKitPlugin - and comment out from ShareKitPlugin.m all the refence to Facebook.
Now the share trough ShareKit is working and I'm going to manage the facebook share trough the official SDK.
Hope it could help...
#Teo_ne: After spending a lot of time, I found that Phonegap_Facebook_Plugin only work with IOS v6+, not support IOS v5.x due to the Social.framework.
I am developing iphone app which shares photos on social networks.For photo sharing I am using "Sharekit".I have created Facebook App and using its api key and secrete.(used correct api key and secret.).
When I try to share image with this app(even simple text),the following error comes.(even the facebook login popup doesn't appear.)
"Sorry,the application you are using misconfigured for Facebook integration.Please download the newest version of the application"
I would have uploaded snap shot but as a new user Stack overflow is not allowing to upload image..Any help will be appreciated.
Thanks.
apparently this problem was faced by me too.
Since i was using their old API methods..
it is really tough to find the cause now..
Although i have not used ShareKit..i believe it is also using the older methods.
I solved the problem by using their official tutorial on Facebook iOS integration
I noticed that the version of sharekit i am using 0.2.1 is pretty outdated one. The project was moved to github and the latest version 2.0 can be found here. The home site is outdated with version 0.2.1 so follow the github link for latest update.
You might want to take a look at Socialize: http://www.GetSocialize.com, which uses the newer methods. Full feature list at http://go.GetSocialize.com/features
Good luck!
DROdio