Windows Phone 7 - Steps for Authenticated Push Notifications - c#

I have looked through lots of different resources via the internet for pre-requisites and implementations of the Authenticated Push Notification mechanism for Windows Phone 7.
I have gone through:
http://msdn.microsoft.com/en-us/library/ff941099(VS.92).aspx,
http://msdn.microsoft.com/en-us/library/gg521150(v=VS.92).aspx
http://csainty.blogspot.com/2011/01/wp7-authenticated-push-notifications.html
What I am after is the exact steps (1,2,3...) for pre-requisites and implementations of authenticated push notifications.
Also, how would this work at the time of development when we do not have an application available via the Marketplace?

I would recommend downloading the Microsoft Identity Developer Training Kit
It has an WP7 example for doing authentication and push notifications. Its a training kit focused on claims based authentication but has a very nice wp7 training lab section which covers a lot of wp7 features.

Related

How to publish and deploy multi-channel bots without azure?

once I read about Microsoft bot framework, I realized that it is a platform to code once and run everywhere... I mean, you code once and then you have bots for Telegram, Facebook, slack, skype and so on.
Is my understanding about Microsoft bot framework correct? Or I'm expecting too much of it?
Then I downloaded Bot Composer for my windows laptop and created a bot.
It works on emulator.
My problem/Question is how to publish and deploy my bot without azure?
I have a VPS on Hetzner, and I want to host my Bots in that vps.
The bot composer has only options working with azure, I don't have Microsoft app ID and Microsoft app password. What should I do ?
In this chart, It can be seen that some social platforms work with azure, and some others work with sdk, for example Telegram -->> SDK , What does it mean ?!?!?
Does it mean that you have to pay for Azure to publish your bot for Telegram ?
In this link, I have to register a bot, there is a button there which says : Create Microsoft App ID and password.
I clicked on it and created one, there is Microsoft App ID in it, but there is no password.
I know I wrote too much :)) but I got very confused because I think the documentation is very unclear and the boundary between paid services and unpaid services is not clear...
Can anyone tell an instruction of how to deploy an simple echo bot on a VPS for multiple platforms without azure ?
Thank you.
That's a bunch of questions πŸ˜…, will try to synthetize.
Yes it's a code once, use from several channels... but not all channels have the same capabilities.
A bot application is "just" a state machine with a REST API endpoint to receive messages and send the replies back (seen from 30,000 ft πŸ˜‰)
You can host your app anywhere, it just has to have a valid public https address that you can configure in the Bot Channel Registration in Azure.
Azure Bot Service is a channel aggregator, that handles all the connection details for the channels listed as "Azure" in the chart you mentioned. Those channels are handled "automagically" by the bot framework.
You might want to read a blog post I wrote some time ago, it's a bit dated but still conceptually valid:
How does a Bot Builder v4 bot work?
For those channels not in Azure, you have to handle each channel with a provider-supplied SDK in your web app. Of course, you could also implement authorization and all the details by yourself, after all it's just an API endpoint.
You don't really have to pay Azure for using the bot service channels, if you use the standard channels, and premium channels are low cost.
As for deploying outside Azure, supposing you'll still use the free or close-to-free Bot Service:
Follow section 1-3 in Deploy your bot
Deploy the web app wherever you want (even locally using ngrok similar to what I show in another blog post.
With all of the above in place, you should be able to test the bot from the channel webchat or even from Telegram, once you enable it, while your app is running in VS πŸ˜€

How to set up the backend for mobile app using the offline sync feature

I'm starting with xamarin.forms mobile apps and trying to build an app using the azure offline sync feature.
In sample applications and tutorials one is asked to create a new backend project by selecting ASP.NET Web Application with the Azure Mobile App template - which in the meantime is retired.
Similarly in the azure portal the template (Web + Mobile => Mobile App) to build the backend
is retired.
So it seems the offline sync feature requires setup of specific components which no longer are provided by microsoft. Since other key features of mobile apps (push notification, authentication &
authorization, ...) are still advertised it seems to me that the offline sync feature has silently died.
So my questions are:
how to set up that backend given that those templates are no longer available?
anybody having experience with that feature in a real world application: does the offline sync feature as it was advertised has proven to be a usable feature ?
Any guidance on how to implement the backend feature (without the mentioned templates)
would be highly appreciated.
Check out the book: https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/ - it covers set up without the portal functionality, which - as you have pointed out - is no longer included in the portal.
"It depends" - generic offline sync always has caveats because it requires models to be created a certain way in order to support offline sync. Can you use the feature to synchronize "any" model? No. However, if you follow the rules laid down (the book I linked to, which I wrote, is a good starting point), then it works well.

Winforms auth using current account password

In my win-fourms application, I would like to do something like to use the account password similarly to how apple has the touch id API. I could not find any information on this. Here is an example I saw in the built in groove music app in windows 10:
Thank you!
When Microsoft built the Universal Windows Platform (UWP) they built in an authentication library that allows you to use user's Microsoft Accounts. There is no built in support for this in WinForms or WPF apps.
However, you can use the Microsoft OAuth endpoint to accomplish the same thing, it just won't look the same (requires a browser popup for starters). More information can be found here:
https://learn.microsoft.com/en-us/azure/active-directory/active-directory-v2-protocols-oauth-code
The code basically requires doing a bunch of REST calls and providing a listening socket for an asynchronous response.

Struggling to understand the structure of the Facebook API

Ultimately I want to create a desktop app that allows users to update their own status, view status' of their friends, update pics etc. - basically a lot of the functionality the facebook website provides. Through looking through some tutorials and sample projects it seems that an app must be created for the facebook account. Now is this the facebook account of the developer (i.e. mine) - which will provide an API key that will allow any other user to log in?? Does every desktop project need to authenticate the user through a facebook dialog window to take the users' credentials?? Where does OAuth fit into this?? If anyone can shed any light as to the structure of the facebook api and the ways in which I can grant this functionality from say a WPF C# app for example I would really appreciate it.
EDIT: Before complaints of a potentially huge question or too 'vague', my question is specific to the integration/use of the facebook API in desktop applications - not how to then retrieve status feeds etc. I'll work that out myself.
Per Facebook documentation, all desktop apps will need to implement some form of web browser integration, whether embedded within the desktop app or controlled.
See: http://developers.facebook.com/docs/authentication/
Desktop Apps
Our OAuth 2.0 implementation does not include explicit desktop app
support. However, if your desktop app can embed a web browser (most
desktop frameworks such as .NET, AIR and Cocoa support embedding
browsers), you can use the client-side flow with one modification: a
specific redirect_uri. Rather than requiring desktop apps to host a
web server and populate the Site URL in the Developer App, we provide
a specific URL you can use with desktop apps:
https://www.facebook.com/connect/login_success.html.
Don't worry it took me two solid days of trial and error and re-re-reading of the documentation on authentication to finally "get" it.

Windows phone 7 Advertisement

I am developing an application in which I need to display the ads. So now the problem is I cannot use ad-control that is provided by Microsoft. The client has said that he will provide different types of ads like banner,interstitial,gallery and expandable ads. Are there any policies that prohibit me to use my own controls to display the ads rather than using ad-control by Microsoft?
Yes, this is legal, but there are policies regarding WP7 advertising:
Here’s official text from the Microsoft Windows Phone 7 Marketplace guidelines:
2.7 If your application includes or displays advertising, the advertising must comply with the Microsoft Advertising Creative Acceptance Policy Guide.

Categories

Resources