Notify user when destination reached in windows phone 8 - windows-phone-8

My windows phone 8 App requires the end user to get notified or alerted when a destination has reached.
I found some links on how to use service API's, but most of them have only searching the destination. Can we extend the functionality of notifying the user on reaching the destination.
Any suggestive links or API's or code snippets available for the same?.
Thanks In Advance!!..

Subscribe to the position changed event from the GeoLocator. Once the position you get from this API is within a small distance of the destination, handle accordingly.
http://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.geolocation.geolocator.positionchanged
Nokia has a nice article about all your options here.
http://developer.nokia.com/Community/Wiki/Get_Phone_Location_with_Windows_Phone_8

Related

Need refresh token without using consent screen in G Suite

We are using G Suite API with our Micro service for document editing, and we have a different data center and also different db. now once user comes to my application and trying to open document first time then google give consent screen based on that i can get refresh token and access token and i store into one data center.
But problem is that if user comes from another instance which use different data center with different db and user trying to open document with old credentials then google doesn't give any consent screen so i am not getting user's refresh token.
1) So is there any way to get refresh token without using consent screen?
2) Is there any way to identify if user comes from different sub domain then i need to provide consent screen for that?
It might be possible to use the prompt=consent option to force a re-prompt for auth, even though the user has already authorized your app.
See https://developers.google.com/identity/protocols/OAuth2WebServer#creatingclient
You can identify the user's domain using the hd parameter [1] and you can request a refresh token without the consent screen after the domain admin has configured domain wide delegation by installing your application from the GSuite Marketplace [2].
[1] https://developers.google.com/identity/protocols/OpenIDConnect#hd-param
[2] https://support.google.com/a/answer/172482?hl=en
When you request an OAuth Flow (access_type=offline`), a Refresh Token is returned to your application. This only happens once (obtaining a Refresh Token). Your application is expected to save the Refresh Token for future needs.
In your use case, one of your systems completed the authentication and the user has moved to a different system. You will need to reauthenticate with prompt=consent, access_type=offline. You will not get another Refresh Token without reauthenticating.
I spent a lot of time on this issue last November. Here is a link which has lots of details on this problem.
Any application can only have one valid refresh token for a user. You can request for a new refresh token using the prompt=true&access_type=offline on the request as said by #John. But every time the previous one will become invalid.
Based on you comments on the other answers, I'm assuming creating a new micro service that returns the token to the one being used is not a possibility (that would be my recommendation)
You asked "to identify if user comes from different sub domain"...
If those applications are for end users of gmail.com accounts, you can treat them as different applications and configure different projects on the developer console.
It will be a bit of a pain when enabling new APIs, I would recommend doing that from a script that replicates to all application needed.
If your end users are from companies using GSuite, you can have your app installed as domain-wide application (either manually or from GSuite Marketplace). In that case you can use just client side authentication to get an id_token, send the token to the server and use a service account to impersonate the user in any given service without worrying about any token from them.

Google MAP API | Push Notification for Website

I am using Google Maps API for a project whose functionality is something like below
Functionality achieved:
When user sign in they see map and their current location is traced. Users can mark their favorite location and add a comment.
Functionality required and I need help in:
When any user passes through any location in real time, then my web application should send a notification saying "you are someone's favorite place do you want to add comment and xyz..."
Can anyone help me even with a hint on how I can achieve this for the web application?
P.S: I am not using any mobile application for this purpose. This is a web application.
It sounds like you're already set up with getting the user's location through the browser geolocation api when the page loads. My suggestion is to get the user's location again on a certain interval, every couple minutes maybe. If the new location is more than a little bit different than the previous location, send an ajax request to your server, see if the new location is near one of these favorite places, and if so, display a notification that they are near this place.

Windows phone 8 dialor

I am pretty new to Windows phone development. I want to create an application that will be displayed as an option to the user, when the user dial a number or select 'call' option from a saved contact, for routing the call through that application. The application first dial some number to connect to a specific service provider and then dial the number on the selected contact or the number that the user dials to make the call. I had an experiment with the PhoneCallTask but not succeeded. Any help will be appreciated.
First, there is no way to put your app's shortcut in Phone app. I assume what you are looking for is a call interceptor app. Currently, the builds till WP8.1 don't support it. There are possibilities of such API in the final Windows 10 build though.
Please use a search engine to look for API limitations first and then ask a question in SO.

How to verify the local business by phone in google map ? I didn't see any field area to put my number?

When I go to this link: https://support.google.com/business/answer/2911778, there is verification by phone option and I clicked on into your dashboard but in dashboard I could not find input field for phone number. How can I verify in this condition by phone?
I was able to reproduce this issue.
According to the Google documentation on Create and verify a local business on Google, You can only verify your business through phone if you are verifying a business that is already on Google. If you want verify a new business on Google than you have to verify it by postcard that will reach your address with which you have registered your business in 1-2 weeks.
Hope this would help!!

Displaying Tiles data with Time interval using Push Notifications in Metro Apps?

I have metro application in which I implemented Push notification concept for getting single message.If I get more than 1 notification,still my application tile is able to show only 1 notification(msg).Am not able to do how to display multiple notifications for time-specific.Means do I need to write any extra code for displaying multiple notifications on my tile.If so, where should I need do write either client-side or server-side?
Thank you.
There are several ways to look at updating, and depending on what your end goal is, you may end up implementing the code either on the client, or the server, or a little of both.
For the scenario you describe, you need to use Windows Notification Services to push the notification each time you want a new tile notification. Typically, this is done by having a service running in the cloud (a website, or a Windows Azure service, or similar), that calls Windows Notification Service and sends a tile update to the app when something of interest occurs.
If what you want is for multiple notifications to cycle on the tile, that's enabled by calling the enableNotificationQueue method on the TileUpdater class:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.notifications.tileupdater.enablenotificationqueue.aspx
Per the comment below, enableNotificationQueue works for any notification source. But if you want to pull information from a remote service, rather than using push, you can use scheduled polling as means of updating the tile using remote information, as described here:
http://msdn.microsoft.com/en-us/library/windows/apps/Hh761476.aspx
Combined with the call to enableNotificationQueue, it may also enable the scenario you're looking for.