Browsers, E-mail, & Web Apps forum

Question

How to integrate windows live id login in windows phoneapp?

by lmstrial / November 19, 2013 4:54 PM PST

our windows phone 8 application needs windows live id login and we are using visual studio 2012 for creating its xap file. It is not logging in and found 2 solutions. one is, we can do it with visual studio 2013 and another is, we have to register our app in windows app store. But it is not working still.How this can be done?..pls suggest one good method.

Discussion is locked
You are posting a reply to: How to integrate windows live id login in windows phoneapp?
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: How to integrate windows live id login in windows phoneapp?
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
windows live id login in windows phoneapp
by lmstrial / November 21, 2013 7:02 PM PST

Thanks for the reply. But we are trying to implement live id login to our windows store app (html and javascript using phone gap) done in visual studio 2012 as specified in http://msdn.microsoft.com/en-us/library/windows/apps/hh920269.aspx.
The link says, open visual studio, in Solution Explorer, right-click References > Add Reference.... Go to Windows > Extensions, and check the box next to Live SDK. If you don't see Live SDK in the list, reinstall the Live SDK and retry this procedure. Click OK to exit the dialog box. We tried to reinstall it ,but we didn't got anything as specified above.Instead we have, In Solution Explorer, right-click References > Add Reference.... Go to Assemblies > Extensions>Microsoft.live . And when running windows phone emulator, it generates an error like this ," WL is undefined in our js file". I am including the code ,i used for live id login, which i written in index.js on visual studio.

function onLogin() {

document.getElementById('load').innerHTML = "Loading............";

WL.init();

WL.login({

scope: "wl.emails"

}).then(

function (response) {

WL.api({

path: "me",

method: "GET"

}).then(

function (response) {

// alert(response.emails.preferred);

var req = new XMLHttpRequest();

var serviceUrl = 'service url';

req.onreadystatechange = function() {

alert(req.readyState);

if(req.readyState == 4) {

document.getElementById('token').value = req.responseText;
}

}

req.open("GET",serviceUrl+"?username=" + response.emails.preferred + "&action=1",true);

req.send();

},

function (responseFailed) {

alert('Failed to receive email');

document.getElementById("infoArea").innerText =

"Error calling API: " + responseFailed.error.message;

}

);

},

function (responseFailed)

{

alert('Failed');

document.getElementById("infoArea").innerText =

"Error signing in: " + responseFailed.error_description;

}

);
}
<------------------------------------>
included /// <reference path="///LiveSDKHTML/js/wl.js" /> in index.js
and <script src="///LiveSDKHTML/js/wl.js"></script> in index. html. Kindly suggest me how this can be done..and waiting for a response soon.

Collapse -
"(html and javascript using phone gap"
by R. Proffitt Forum moderator / November 21, 2013 11:25 PM PST

Ahh, sorry. I thought you were writing an app. HTML and javascript is a web page to me but I am bumping into programmers that will call a web page an app.

Good luck in cracking this one.
Bob

Collapse -
windows app
by lmstrial / November 22, 2013 1:52 PM PST
Collapse -
I apologize.
by R. Proffitt Forum moderator / November 22, 2013 2:43 PM PST
In reply to: windows app

I'm a little more of the app that you compile from C/C++ or languages and as I noted, HTML and script to me is what it is. Hope you crack it.
Bob

All Answers

Collapse -
Answer
I see your cross post.
by R. Proffitt Forum moderator / November 22, 2013 11:45 PM PST

But my answer is to re-think your choice of html and script. Or surrender and call Microsoft.
Bob

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

Does BMW or Volvo do it best?

Pint-size luxury and funky style

Shopping for a new car this weekend? See how the BMW X2 stacks up against the Volvo XC40 in our side-by-side comparison.