React native get access token social networks - android

I'm working on react-native app project I need to use login with social networks and get access token of each others. I have problems with some packages i need the best way and cross platform (iOS, Android).

I don't know if there is a one-for-all solution to this problem that integrates well with RN. I've been recently working with the Facebook SDK, which enables Facebook Login in your application. It's fairly easy to set up, and it might be a good starting point for you. As for other social networks, I'd suggest you go over each one and find a way that does the job. Here are some packages that might help you:
LinkedIn
[Instagram]
(https://js.coach/all/react-native-instagram-oauth?search=instagram)
Google
This also might be worth a shot: react-native-social-auth

Related

How to create salesforce login page inside android view pager?

I am newbie in exploring Salesforce sdk.
I have been looking for salesforce android sdk, I found to implement sdk we need to extend SalesforceActivity \ SalesforceExpandableListActivity \ SalesforceListActivity. But what if I need to show login in screen on one of tab of view pager, as view pager doesnt allow to insert activity and salesforce sdk doesnt have any base fragments class to extend.
Please guide. Thanks.
Before posting the answer for your question, i would like to share few things about Salesforce and Android integration.
As Salesforce Mobile SDK per this To begin learning about the Salesforce Mobile SDK, follow this path.
Watch the webinar Building Mobile Apps with the Salesforce Mobile
SDK
Complete Mobile SDK Trail
Download the Mobile SDK Development Guide
However, the SDK is meant mostly for starting new apps, so you'll have some work ahead of you integrating it into an existing application. The main things you want are the oAuth 2.0 User-Agent login and REST wrappers.
You may also find this app useful -- Tomgersic put it together for a presentation at Dreamforce '11, which was shortly before the Mobile SDK for Android came out, so he wrote the oAuth and REST stuff in GitHub. Might be a simpler starting point for you
Here you can find a basic Salesforce - android app interaction which helps you further Salesforce Mobile SDK - Eclipse Setup and Android App
Also, if you want, the Dreamforce session is on Youtube here: link
Note: this is exactly not an answer for the question, but it may help for you to proceed further.
Thanks !!

Windows azure active directory authentication in android?

I have been checking around the web, and havent found a clear cut answer. What im trying to do is authenticate against windows azure active directory tenants in an android app. The authentication protocol isnt an issue, but i was thinking that saml 2.0 would be prefered.
*I have been able to do this in .net quite simply. so if the above is not possible, i was wondering if creating a web app using .net and the using this app in android to authenticate by detecting cookies.
*Note im quite new to authentication and android in general, so i would love any pointers u can give me. Thanks in advance.
I was looking for the same thing. I found this website from Mircorsoft which has steps to add in authentication to your Android app.
https://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-users-android/
This link starts the intro to Mobile services for Android
https://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-android/

SalesForce with Android?

I want connect sales Force from my Android Program please suggest which one is correct way to achieve this I am new to sales Force I have some knowledge in Android Application Developement.
Thanks in Advance.
You definitely want to use the REST API for mobile apps. The SOAP API is really heavy, and is better for Server-to-Server integrations. The best way to get started building an Android app for Salesforce.com is to take a look at the Salesforce Mobile SDK for Android:
http://wiki.developerforce.com/page/Mobile_SDK
There's a very helpful getting started PDF linked on that page.
However, the SDK is meant mostly for starting new apps, so you'll have some work ahead of you integrating it into an existing application. The main things you want are the oAuth 2.0 User-Agent login and REST wrappers.
You may also find this app useful -- I put it together for a presentation at Dreamforce '11, which was shortly before the Mobile SDK for Android came out, so I wrote the oAuth and REST stuff myself. Might be a simpler starting point for you.
https://github.com/tomgersic/DreamforcengerHunt
Hope that helps!
You can either use the RESTful interface or the SOAP webservices. The latter is a bit easier to deal with IMHO.
Under setup in salesforce, download the partner or enterprise WSDL (partner = generic, enterprise = specific for your SF-instance). Now with wsdl2java you can create Stubs for those wsdl entries. Import those into your android app and use them. See here for a Java Exampe by Salesforce.com.
Be sure your user has the permission to "do API". You might want to look into SSO if you want to make a "production"/commercial app. Also, to login, remember to use the correct password, you might need to add the API key (generate using the Setup tab in SF). Hope this helps.
Try checking out some of the open-source SDK projects the developer evangelists have added to the forcedotcom github
Lots of good examples on different platforms, including android with phonegap/html5 and a native SDK for android (iOS and Android) to get you past authentication and onto building your app.
Salesforce Provides mobile SDK for development on mobile device, here is the link for android SDK:
http://wiki.developerforce.com/page/Getting_Started_with_the_Mobile_SDK_for_Android
You need to:
Download SDK.
Add a sample project included in SDK's native/SampleApps folder(make sure you check include to the workspace while importing the project).
Get your remote access form salesforce and update in your app.
--This should get you started with a sample app form salsforce.
After this you need to modify existing code to your own code.
You can go to trailhead and start browsing on it, while working with your own application you will have to learn a lot about smartStore and smartSync,
I did implemented A smartStore App with using salesforce as database provider, if you want i can upload it to drive and share a link to you and
if you have any doubts about using or understanding the flow be free to ask..

Integrating Android add network in my app

I had created an app. Now my next task is to integrate Ads network in my app. But before that, I want to know:
What are the different Ads network that can be implemented in an android device?
Which Ads network is best suited for integrating in my app.
How to start with the integration.
So anyone please help me. If possible with examples and any documentation regarding this topic.
Regards
Anshuman
AdMob is relatively easy and good to use. It came directly from google, so it is definately worth a choice and connects well with your google account.
Add a new application/website to your Admob Account just enter "http://" as links. After that you can download the .zip file with included jar
With AdWhirl you can integrate many different AdNetworks, this is a very nice feature also.

Facebook Connect vs facebook-android-sdk on Android

I am trying to add a social aspect to my app where one can post there results (a common feature).
I have found some sites that describe how to do this using Facebook Connect http://www.mobisoftinfotech.com/blog/android/845/
and others, like the Facebook developer site point you towards using the SDK and downloading through Github.
http://developers.facebook.com/docs/guides/mobile/
Anyone have any experience with this? What is the difference between the two options and which is better for apps?
All the other questions that seem relevant are years old.
I would recommend using the Facebook-Android-SDK for a couple reasons.
It comes from Facebook themseleves. ...Perhaps this is actually a reason not to use it! :)
It uses OAuth for authentication, which is good, and it is pretty easy to use.
The Graph API. It is pretty robust, and also easy to use.
Please note that I have not used FB-Connect before, so I may be a bit biased...
Facebook Connect has been deprecated and you should use the SDK - Integrating Facebook Connect with a Web Page
I have familiary with the facebook-android-sdk I've never had a problem with it and it seems to work very well.
It doesn't really make sense not to use the native SDK unless you are using a webapp imo.
Also I think FBConnect has been deprecated.

Categories

Resources