Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Linked in login#35

Open
govi2010 wants to merge 14 commits intomkloubert:masterfrom
govi2010:LinkedInLogin
Open

Linked in login#35
govi2010 wants to merge 14 commits intomkloubert:masterfrom
govi2010:LinkedInLogin

Conversation

@govi2010
Copy link

I am not android or ios developer. So for any mistake please guid me so i can fix it.

Right now In linkedin I am successfully getting access token which i need.

For IOS, I have used https://github.com/tonyli508/LinkedinSwift POD file
For Android i have used Official Linkedin SDK.

@jogboms jogboms self-requested a review January 30, 2018 05:32
@jogboms jogboms added this to the 3.1.0 milestone Jan 30, 2018
Copy link
Collaborator

@jogboms jogboms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@govi2010 Any luck with this?

},
"tns-android": {
"version": "3.4.0"
"version": "3.5.0-rc-2018.1.8.1"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@govi2010 Is the demo in any way tied to any fixes made on 3.5.0-rc-2018.1.8.1. I mean would it still run on the current stable version of 3.4.1?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it will run Ok with any version

Copy link
Collaborator

@jogboms jogboms Feb 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. Very well then. 👍

}
// if (!result.google.error || !result.facebook.error) {
// tabView.selectedIndex = 1;
// }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@govi2010 Was there any particular reason why lines 60 to 74 was commented out?

permissions: ["r_basicprofile", "r_emailaddress"],
state: '',
redirectUri: "{{yourredirectURL}}"
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@govi2010 Initialization parameters for google and facebook seems to have been removed here. Any reasons?

viewModel.facebookAppId = androidResources.getString(org.nativescript.NativescriptSocialLoginDemo.R.string.facebook_app_id);
}
catch (e) {
viewModel.facebookAppId = androidResources.getString(com.giddh.accounts.R.string.facebook_app_id);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@govi2010 Did the appId for the demo app change from org.nativescript.NativescriptSocialLoginDemo to com.giddh.accounts?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my bad. I forgot to replace with original package id. I will Fix that.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. 👍

@govi2010
Copy link
Author

I will fix this all issue soon.... may be tonight

@govi2010
Copy link
Author

actually, I am not using this for LinkedIn login. Because Web token and Mobile Token are different for Linkedin. I already have a website and electron app using OAuth. When I pass the token to server and server retrieve user info. But you can not use mobile token at server side to retrieve user info. I end up using Webview directly in my project for linkedin. But this will be handy for users who want Mobile SDK Integration.

<TabViewItem title="Buttons">
<TabViewItem.view>
<StackLayout className="mjk-buttons">
<Button text="logout" tap="{{ }}">
Copy link
Collaborator

@jogboms jogboms Mar 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@govi2010 There seems to be an issue here. The Button was created but never closed, probably missing a /.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know @jogboms. I was trying to implement logout button for google.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets me make this work and complete this PR. Sorry for Delay but It too much work on my side.

},
"dependencies": {
"nativescript-social-login": "file:../src",
"nativescript-social-login-linkedin": "file:..\\src",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason for changing the name of the package, seeing this change was not reflected in the demo implementation?

logoutWithGoogle(callback: (result: Partial<ILoginResult>) => void) {
if (this._googleClient.isConnected())
{
logoutWithGoogle(callback: (result: Partial<ILoginResult>) => void) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@govi2010 usually though, when a new feature is added, its a requirement its implemented across both platforms. This seems like a pretty neat feature but pending when i could collaborate on this new feature, could you revert this feat on the PR so we can create a new PR for it later on so can it can be replicated across board for both platforms and for all providers?

Copy link
Collaborator

@jogboms jogboms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes made on this commit introduces a lot of conflicts.

  • name
  • repository.url
  • author
  • bugs
  • homepage

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants