Getting acces to maps place favorites - c#

In WP8.1 the MS maps app has favorite places like Home and Work. Cortana uses them of course. Is there a public API to get access to those information and even set new places?

Not at the moment. The only thing you can "ask" Cortana right now is to fire up your app with the argument you told her.
There's no way to get to her notebook, that's where all that info is stored.
Not sure if I'd want third party apps getting into that info. That's what Cortana uses to give you accurate answers, if third party apps can 'get in there' it could trick her into giving you "wrong" info/answers/directions.

Related

Displaying ads on C# desktop applications?

So I've been trying to figure out what's going on with ads in desktop applications, and looking at APIs, Google's API seems low on examples and documentation, and I didn't manage to make any sense out of it, and the Bing API seems to be concerning itself with those who want to be advertised, rather than affiliates. In retrospect, so does Google's.
My currently leading idea is to just drop in a web form in my Windows Forms application, and load the HTML that the Google/Bing/Whoever would give me for my webpage, that should register as the ad being viewed/clicked etc. But that seems a bit amateurish, I would imagine there would be a component ready for displaying ads.
So the question is, do advertising APIs from the major players (Google, Bing, Amazon etc) target affiliates or not? If not, does the web browser component method work, or may it lead to having the account revoked due to suspicious use of the HTML code (to prevent scam etc)?
Additionally, I found out that Amazon forbids use of the ads in applications not specifically related to Amazon itself, it seems alright to do so for Bing and Google but I can't find conclusive proof of it, does anyone know what's going on with that?

Get information (GCM Token) from Xamarin.Android to Xamarin.Forms?

This might be a very short and trivial question, but how do I get information from Xamarin.Android to Xamarin.Forms?
Basically, what I would like to do is the following:
First I retrieve a token in my Android project from the Google Play
Services.
Then I start my main application and show a login screen.
During the login I would like to forward the token to my server, so he is aware of my token and can send me messages.
Is that a good idea? How do I get my token into the Forms part of my application?
Thanks in advance!
There are multiple options for communicating between Xamarin.Forms and the individual platform specific projects.
You can call into Xamarin.Forms from each project rather easily by accessing the Xamarin.Forms.Application class and it's "Current" property which will give you the instance of your Xamarin.Forms application.
You can also do the reverse - call into your specific platform project by utilising the DependencyService class from your shared Xamarin.Forms code. With async/await and TaskCompletionSource this can be a good way to abstract the inherent async nature of obtaining tokens on android/ios into a single awaitable function call.
You can find more information on DependencyService here
Lastly, from what I gather, you are figuring out how to register for push notifications. It might be best to simply use the PushNotifications plugin located here.
It should help you get started. Be sure to read through the documentation. There are a bunch of steps needed to get everything working.
If you have more specific questions or get stuck somewhere, post a new question, I have integrated push notifications on both Android and iOS succesfully before and might be able to help you out.

How to read a UDID of the connected iOS device on Windows using C#?

Could you please suggest how to get a UDID of the connected iOS device using C# on Windows? I tried to search in Google, but didn't find anything. Is there a way or a workaround for this? Maybe any open-source library or something else?
Please suggest.
Thanks in advance.
Here's the problem, UDIDs have been locked down since IOS 7, you shouldn't access this ID within your code. There are ways to extract the id through background web pages that are invisible, but this will only work if you DON'T plan to distibute your app on the iTunes store, since your app will be rejected.
In 2013, Mattt on his blog, NSHipster (http://nshipster.com/uuid-udid-unique-identifier/), wrote the following:
As of May 1st, Apple began enforcing this deprecation on all new app
submissions, even for apps targeting earlier versions of iOS. Any use
of uniqueIdentifier is grounds for immediate rejection of new
binaries.
(read the rest of Mattt's blog entry should you wish for a more detailed explanation, of the ins and outs of the this change)
What you can do about this? Nothing. However, if you need an ID of sorts to do whatever you are trying to do then you have two options:
identifierForVendor
here: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/#//apple_ref/occ/instp/UIDevice/identifierForVendor
The value of this property is the same for apps that come from the
same vendor running on the same device. A different value is returned
for apps on the same device that come from different vendors, and for
apps on different devices regardless of vendor.
Normally, the vendor is determined by data provided by the App Store.
If the app was not installed from the app store (such as enterprise
apps and apps still in development), then a vendor identifier is
calculated based on the app’s bundle ID. The bundle ID is assumed to
be in reverse-DNS format.
advertisingIdentifier
here: https://developer.apple.com/library/ios/documentation/AdSupport/Reference/ASIdentifierManager_Ref/index.html#//apple_ref/occ/instp/ASIdentifierManager/advertisingIdentifier
Unlike the identifierForVendor property of the UIDevice, the same
value is returned to all vendors. This identifier may change—for
example, if the user erases the device—so you should not cache it.
If the value is nil, wait and get the value again later. This happens,
for example, after the device has been restarted but before the user
has unlocked the device.

Does google plus api allows posting status?

I want to make an app for windows phone 8 to post status on Google plus with user signing in only once and without any Google's share button so that I can schedule the status update.
I tried googling but some old posts say that it cant be done while some point that some 3rd party apis can do it however I cant locate any reliable api.
Is this thing possible to do now or still hard luck??
I know this thread How to post in Google+ wall
But it is 2 years old , I want to know if there is an update.
Thanks.
Simply NO. I was also searching for the same earlier in summer & all in vain.

link between .net and msn messenger

Hey All,
I have a windows form application that has a textbox for input value and a button...
On the first step : on button click..i will hit the db and add the input value on the total value...
On the second step : I will get this total value and add it on my msn messenger as a personal message....
For now I've done the first step..but before I start the second step I want to make sure if there is a way to link between .net and msn messenger...And if theres not..Ill just drop the second one...
So my real question is : I just want to know if there is a way to interact between .net C# and msn messenger
Thanks alot =)
Using these libraries you can achieve what you want:
http://code.google.com/p/msnp-sharp/
MSNPSharp is a .net library that
implements the MSN protocol. It's the
continuation of project DotMSN started
in 2002. Today, we have more than
10,000,000 users around the world
using services based on our library.
http://msdn.microsoft.com/en-us/library/ms630960.aspx
http://www.xihsolutions.net/dotmsn/
There is a Windows Live SDK which allows to access and update profile using REST API.

Categories