Can Windows Phone Apps see the User/Device ID? - silverlight

I'm building a Windows Phone App that involves users talking to each other through a web service. Does Windows Phone expose the User or Device ID to the app that I can use to identify the different users? Better yet would be a federated login through Live ID.
Thanks!

There is a Device ID that you can use that is unique to each phone. You get it via the Device Information which you can read about here -> http://msdn.microsoft.com/en-us/library/ff941122%28v=VS.92%29.aspx
And then you can read about it a little more on this blog post with a more full featured example.
http://www.nickharris.net/2010/09/windows-phone-7-how-to-find-the-device-unique-id-windows-live-anonymous-id-and-manufacturer/

Related

Serving ads to a specific device using mobile ad network

Is it possible to serve specific ads that will appear on a specific user's mobile phone when he is using a specific app? Is the user's IMEI required for this? (This is when you are not the owner of the APP)
Thanks!
Targeting a specific user
Here's a couple of quotes from DoubleClick AdExchange Buyer help page
IDFA (Identifier For Advertising) on iOS
Every iOS device comes with an identifier that allows developers and
marketers to track activity for advertising purposes. It may be used
by advertisers to run remarketing campaigns and record purchasing or
downloading conversions.
AAID (Google Advertising ID) on Android
Inventory bid requests from Android devices pass the AAID, which
provides the same type of device-specific, unique, resettable ID for
advertising as the IDFA. The ID for tablet devices with multiple users
may also be unique per user.
Targeting a specific app
Check out section 3.2.9. the OpenRTB spec, there's an App object
This object should be included if the ad supported content is a
non-browser application (typically in mobile) as opposed to a website.
A bid request must not contain both an App and a Site object. At a
minimum, it is useful to provide an App ID or bundle, but this is not
strictly required.

Call Google Glass Mirror API using service account

I need to create a (demo) application for Google Glass with a simple user interaction: insert a card on Glass and get a response back to the application.
I think this can be done by using the Mirror API.
This application is not a web application so I think I need to use a service account.
I have created an API project on the Google APIs console https://code.google.com/apis/console/ and enabled the Google Mirror API.
After that I created a new client ID with application type "service account" (calls Google APIs on behalf of your application instead of an end-user; more info at https://developers.google.com/accounts/docs/OAuth2#serviceaccount).
The result is a client id, email address and public key fingerprint and a P12 key with password.
The problem is that I cannot find an example how to do the service account authentication and for example a card insert.
Any ideas? The used programming language is less important...
See also Can I use OAUTH2 Service Accounts with Glass Mirror API? but unfortunately without an answer.
Edit:
From the answer below I understand I cannot use the service account for this.
Is it then correct that I always need a web application where Google Glass has a callback url so data can be send from Glass to the application?
We develop a Warehouse Management System where the operator in the warehouse uses a voice client (like http://www.epf-gmbh.de/bilderorg/talkman_joe.jpg) that communicates with the server. The server sends commands to the client and the operator can send voice commands back to the server.
For demo purposes I would like to replace the voice client with Google Glass.
Edit 2:
Something like this: http://youtu.be/kbcskj4yAvo
You cannot do timeline operations with a service account. Most Mirror API operations (on the Timeline, Contacts, and Subscriptions) require a user's account since these operations must be done on behalf of the user in order to correctly identify which Glass will be used.
Update:
Your followup questions don't exactly relate to the authentication question, and they may be better asked in a new question, but two quick points:
Yes, when working with the Mirror API if you want to get information from Glass into your server you'll need a webapp which can take callbacks. You'll be registering this as part of a Subscription.
The example you pointed at uses the GDK, not the Mirror API.

Is there anyway to provide a clickable link on a HTML page to save a contact to a mobile phone?

I'm looking to allow my users to my mobile web click on a link to straight away add my contact into their phone (iphone/android).
I know there's a tel scheme available and I'm currently using that on top. Is there anyway to provide First Name, Last Name, Email, Phone in a combined solution to store into my user's phone?
There is the Contacts API spec in conjunction with Permissions for Device API Access (you need to have permission to write or read contacts), but no browser supports it yet.
Mozilla Labs is working on it, but it is only in the desktop.
As for schemas there is http://schema.org/Person but this is only used by search engines, for now, maybe in the near future browsers "learn" to use these schemas.
There is also the hybrid web/native app solution with PhoneGap, but it is not a mobile web solution!
I think you can create your contact in .vcf. If user click the link to your vcf, your contact will be downloaded an then opened for confirmation to save into phone book

how to invite a friend to the application

Hi
I'm trying to develop a simple application in Silverlight to the facebook, I'm using the facebook C# SDK to be able to establish the connection.
I wonder if there is any instruction FQL to invite a friend to the application and keep track of "who invited who" and also if there is any field in FQL to save, for example, the high score of my friends who share the application
thanks
You use requests to send an invite. See this article for more information: http://developers.facebook.com/blog/post/453

.net winform talking to Silverlight

Im currently working on registration of our application. Basically we have a simple concurrent licensing system so when the user logs in we store their computer name and logon name to uniquely identify them. This is done from a simple winforms app that allows us to retrieve this data.
We now have a brother silverlight project that must work in the same licensing. The situation being that if a user logs into the winforms app they will use one license and if they log in on our silverlight app it will still use the one license because they are accessing it from the same computer.
The problem is that we cannot retrieve the clients machine and logon name with the silverlight application.
Can anybody think of a way of handling this? Or am i going bout it totally the wrong way.
Thanks
Forms or Windows authentication.
Once authenticated you can retrieve anything you want (such as user claims, user profile...etc) which is provided through a web service. This of course mean you are communicating with some database somewhere.

Resources