Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Talk:Getting started with Buddy services: Create your own location based social app

From Wiki
Jump to: navigation, search


Cadlg - Number of API calls per applicattion run

Interesting article, MaMi.

I have a couple of questions: How many API calls does this example app make each time it is run ?

Does the Buddy web console show the number of API calls used in real time ?

cadlg 16:22, 12 December 2012 (EET)

MaMi -

hard to say how many calls are made each time, it depends of what is used.

but yes you have a very accurate and close to real time analytics tools showing you various data including api calls number

fore example I made 197 calls while coding this sample, created 9 users / 3 friends links / 7 check ins on 1 device

MaMi 17:10, 12 December 2012 (EET)

Cadlg - Re: Number of API calls per applicattion run

Interesting, thanks.

It seems that the 1 million calls included with NPDP would just cover a couple thousand active users or less, which means that one should consider getting at least a "pro" account when going live.

cadlg 19:05, 12 December 2012 (EET)

Hamishwillee - Subedit/Review

Hi MaMi

I've given this a basic subedit for wiki style/English. Not exhaustive. One thing I didn't fix was the code indentation - usually indent using 2 spaces per level works well.

I liked this article. When I heard in PDP that buddyservices were giving free calls that really didn't mean all that much to me - this makes what is offered a lot more real. I don't know how "innovative or comprehensive it is, but nothing else shows up similar on google, so my first thought is thanks, great job and introduction.

In terms of "room for improvement", I can see that Buddy has a location service, and provides you with ability to create some sort of friends relationship on that service, and to get location from those friends. I think it would be useful to have a bit more of an overview of what other services Buddy provides - for example I've seen they do stuff with "image filters" - what does that allow developers to do? Up to you.

I'd also change the title to "Getting started with Buddy services for Windows Phone"- The current title is a bit of a mouthful, and I prefer not to have colons in titles because they imply "namespace" to mediawiki. Anyway, this is up to you.

Thanks for the article



hamishwillee 06:22, 14 December 2012 (EET)

Hamishwillee - PS, removed the WP7 category

... because as far as I can tell buddy services might work on WP7, but this article content has not been verified against that platform.

hamishwillee 06:23, 14 December 2012 (EET)

Thouzie -

       static void Service_UserAccount_Profile_GetFromUserNameCompleted(object sender, UserAccount_Profile_GetFromUserNameCompletedEventArgs e)
           ServiceManager.Client.Service.UserAccount_Profile_GetFromUserNameCompleted -= Service_UserAccount_Profile_GetFromUserNameCompleted;
           m_searchResultList = e.Result.ToList<DataContract_PublicUserProfile>();
           FriendSearchResultListBox.ItemsSource = m_searchResultList;

It doesn't want to recognise "UserAccount_Profile_GetFromUserNameCompletedEventArgs e" what do I need to do?


Thouzie (talk) 18:48, 9 November 2013 (EET)

MaMi -

It seems that Buddy API changed completely since I wrote this article, and their online documentation does not seem to be up to date.

In this case I'm not sure if this article is relevant anymore...

Anyway regarding your issue specifically, it seems that you now have to use the method "FindUserAsync" from "AuthenticatedUser" to retrieve an user from his name.

Hope it helps, regards

MaMi (talk) 11:57, 11 November 2013 (EET)

Hamishwillee - ArticleNeedsUpdate

Maxime, I still think that the content is "relevant" even though PDP is no longer offering free service calls, and it would be great if you can update the article. However I understand that you are probably busy and this isn't so easy if the documentation is not up to date ....

In any case I've added the ArticleNeedsUpdate template to reflect that the article is no longer accurate: anyone using this API, would be great if you could update it.

hamishwillee (talk) 00:22, 12 November 2013 (EET)

Thouzie - Retrieve user from his name


thanks for your response! Do you know how I need to do retrieve user from his name? Seems like the documentation is up to date but not on their main website, here I found some things: I'm quiet new to programming in general so when great tutorials like these don't work any more I'm stuck..



Thouzie (talk) 20:14, 17 November 2013 (EET)

Thouzie - It does work

Sorry for bothering again,

The tutorial does work for me perfectly, just needed to install the older SDK Just wondering how I should start by getting the history shown of my locations on a map? Can I do something similar with my friends, like getting to see all their check-ins on a map. And how can I use these locations exactly within a code, like getting a notification when being at the same place again



Thouzie (talk) 17:10, 18 November 2013 (EET)

MaMi -


You can get the history of the current user location by using this:

From the list of location it returns, retrieve the latitude and longitude and create GeoCoordinate that you can then use with your map. Check this example that may help you to understand how to do this:!

Same for getting notification when your are at the same place: compare all the Geocoordinate you retrieved from history with the current one you get from GPS using the GeoCoordinate.GetDistanceTo method. If the distance is less than the minimum distance you defined (e.g. 10 meters) then send a notification.

Regarding friends, from what I can see it is not possible to get their history.

Hope this help, cheers!

MaMi (talk) 16:22, 25 November 2013 (EET)

Arpan Production - List box Binding Textblock text


In this code

<phone:PivotItem Header="History">

                   <RowDefinition Height="Auto"/>
                   <RowDefinition Height="*"/>
               <Button Content="GetData" Click="GetCheckins_Click"/>
               <ListBox Grid.Row="1" x:Name="CheckHistoryListBox" Margin="24,0">
                               <TextBlock Text="{Binding PlaceName}" FontWeight="Bold"/>
                               <TextBlock Text="{Binding CheckInDate}" />

In this code in listbox data template you bind textblock with PlaceName and CheckInDate so it is specified column name or we can name it anything ?

Arpan Production (talk) 12:06, 6 January 2014 (EET)

MaMi -


The service GetCheckInsAsync used to return a list of CheckInLocation (I don't know if it is still the case as the API changed a lot since I wrote this article).

PlaceName and CheckInDate were members of the CheckInLocation object, so you can't name it differently except if you create a view model that will manage the CheckInLocation data and link them to the view instead of using them directly.

MaMi (talk) 12:27, 6 January 2014 (EET)

Arpan Production -


Thanks for clear it for me.

Arpan Production (talk) 12:30, 6 January 2014 (EET)

MSPDIDU - Remove Check-ins

Hi, Is there any way in which I can eliminate one or more check-ins?

MSPDIDU (talk) 14:38, 5 April 2014 (EEST)