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.
Related
I want to integrate facebook login in my app for registration i am following this link but not able to understand how to get the Windows Store ID in step 1.2.. can anyone please help..
Have you tried to put the code
Uri _callbackUri = WebAuthenticationBroker.GetCurrentApplicationCallbackUri();
somewhere in your app, for example at the end of App.OnLaunched() method, then put a breakpoint after it, run the app and examine the returned value.
So the windows store id can be retrieved in two ways. One is programatically by calling this method
Uri _callbackUri = WebAuthenticationBroker.GetCurrentApplicationCallbackUri();
And the other way is to login to your microsoft account which you would have registered in dev.windows.com then perfom the following steps
Navigate to dashboard.
Select the app for which you want to integrate the FB login.(If you haven't registered an app in this account yet then I recommend you do it. Because once you do that and login via Visual studio the above mentioned URI method will return same store Id)
Then navigate to that app and on the left you will see a options like Acquistions,Analytics etc. there click on App Management and inside that click on App Identity.
In the app identity page you can find a field name Package SID which is your store id.
Hope this helps!
I got a question about where do I need to get my AuthenticationToken for the Map services on WP8 (and 8.1). I'm using the following namespace for my map
xmlns:maps="clr-namespace:Microsoft.Phone.Maps.Controls;assembly=Microsoft.Phone.Maps"
and this map
<maps:Map x:Name="map"> ... </maps:Map>
When I now run the app in the simulator I get a nice red message "Warning: No authentication ID and/or token specified". When I run the app in my test device no message is shown at all.
My question is the following, where do I get the ID and token? Because I found the following and it's getting me all confused.
Option 1:
On the www.bingmapsportal website I made a free account and token. But they don't give me any ID only a token. And since I don't see any references in my code to Bing I think this is a wrong key :)
Option 2:
I found this post on MSDN How to add a Map control to a page in Windows Phone 8. If you scroll down to "Adding the ApplicationID and AuthenticationToken" there is another way to create a token and ID for the map. But it seems I need a dev account for that :)
Thanks in advance! :)
You will have to generate it directly inside the Windows Store App portal, see the procedure here:
https://msdn.microsoft.com/en-us/library/windows/apps/jj207033(v=vs.105).aspx#BKMK_appidandtoken
I would like to know what is the clean & correct way to notify my WP8 app that the ChannelUri has changed?
I read that i need to handle this in the ChannelUpdatedUri method. But i have a few queries here. Doesn't this require my app to be running all the time?
Second query is suppose i use ChannelUpdatedUri to listen for changes to the Uri. If there is a change will the app be notified as soon as it launches? Or will it be notified at a later time?
The trouble is if the app is not notified on launch then there is a possibility that it may re-register for a new channel uri before ChannelUpdatedUri is invoked. Isnt it?
Please help!
You'll only get notified of a change in the ChannelUri when you have the listener attached and the app running.
The best approach is to always check for the current Uri and pass it to the server when the app starts. You could leave the listener attached for the lifetime of your app and get a new one if it's lost while the app is running but in reality it's far more likely that the channel will be dropped/disconnected when the phone isn't in use.
There is, of course, the scenario where a channelUri may expire when the app isn't in use but the utility of the app is primarily around sending notifications. Obviously you need the user to restart the app to get a new connection but you can't tell them to restart the app.
This is a generic problem: how do you tell someone that you can't talk to them?
The reality of this situation is that if you really need to tell someone to launch the app again you'll need another way to do it.
Unfortunately, it's not possible to get an updated channelUri from a background agent, but you could query your backend to see if you need one and then raise a toast to the user to prompt them to reopen the app. Or you could just update the tile from the agent when this happens.
Alternatively you'll need to send them the prompt in another way (e.g. email or SMS?) but this is reliant on you capturing and securely storing these details.
There is no perfect solution to this scenario other than creating an app that the user opens regularly regardless of whether there are notifications or not and simply having the notifications as an extra feature.
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
Can you route me to API's capable of intercepting incoming and outgoing phone calls in Windows Phone 8 and record the call conversation ?
Once Recording is in progress, is there a way to simultaneously packetize these data and send it over to a remote server ?
Finally can I set this call recording application to be auto invoked whenever there is an incoming & outgoing Call ?
Since SIP is not exposed in Windows Phone 8 do we have an alternate approach to serve the purpose (say a 3rd party Library) ?
Can you route me to API's capable of intercepting incoming and outgoing phone calls in Windows Phone 8 and record the call conversation ?
No, there is no way to intercept anything on Windows Phone. (And this makes the rest of your questions invalid).
There is a way to interact which can identify the incoming call,
Example : New Version of TrueCaller application, it will integrate its app with Network+ app of system and then it will possible but its special api that Microsoft (not Nokia) provided to them I try to contact them since last 2 months i will I have good news/ bad news in very short period of time.
Thanks.