Search for installed Map apps on Windows Phone 8.1 - c#

Is it possible to get a list of the installed apps which provide Map functionality?
In the maps settings menu, you can select which app should be the default one for voice navigation - in that list, my phone displays HereDrive+ and Windows Phone Maps.
How is it possible to search for apps like this? Is such API open or that list result was acquired using a restricted API?

Not a correct answer, but maybe the way you should use this is by using the ms-drive-to or ms-walk-to Uri scheme! When you use those, the phone itself will launch HERE drive if it is present, otherwise Bing maps!
My guess, in the future the user will be able so set this as an option, that he can indicate what default map app he wants to use in general. But for now it's default Bing or HERE if that is installed when using the given URI scheme.
Get the needed example code and usage on MSDN here: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj710324(v=vs.105).aspx

There is no public API to list apps like this. The referenced settings menu is part of the OS not an exertion point for apps.
Apps are blocked from setting information like this from other apps or the OS.

Related

Share local SQLite database in 2 different xamarin forms apps

I am working on two different Xamarin forms apps and there is a need where I want to share the SQLite database of first app with second app.
I want to achieve Single Sign On approach for different xamarin forms apps,
Where user will only log in in any of the app and can stay logged in in both the two apps.
I found below link which stats in android we can share the database:-
Share LocalDB in two different android app
now I only need is similar thing in my xamarin forms app.
Any help will be grateful.
Thanks :)
Enjoy!
In the case of iOS, it's sandboxed so sharing data between applications are so difficult. But there are still some ways to share data between applications.
In your case, I recommend you using App Groups. An App Group allows different applications (or an application and its extensions) to access a shared file storage location, please refer to Working with App Groups for more details.
After Adding an App to an App Group we can use the methods below to share data between applications:
NSUserDefaults:
var userDefaults = new NSUserDefaults("<your group ID>", NSUserDefaultsType.SuiteName);
userDefaults.SetString("user123", "userId");
userDefaults.Synchronize();
NSFileManager:
NSUrl appGroupDirectoryPath = NSFileManager.DefaultManager.GetContainerUrl("<your group Id>");
NSUrl dataBaseUrl = appGroupDirectoryPath.Append("dbName.db", false);
//You can try to copy your dataBase file to this url.
Yes it is possible to share the data between two iPhone apps ...
If anybody need more information on this please go through the below link which will explain how to achieve...
Using your App Group
App Groups are the scheme iOS uses to allow different apps to share data. If the apps have the right entitlements and proper provisioning, they can access a shared directory outside of their normal iOS sandbox. Sandboxing still applies except for a single exception.
This is probably almost automatic, but when you get into iOS app provisioning you can't assume anything. What's supposed to happen is that you just turn on the "app groups" entitlement in Xcode for the app and for any extensions..
Link for:-
Sharing the app extension
#Land Lu - MSFT Thanks for the suggestion your answer led me to get it done.

Payments in WP8 app

I am currently making a windows phone 8 silverlight app.
In the app we would like to allow the user to pay through paypal or another way of paying.
I also looked up the in app payments from the dev center, but did not manage to see a payment with variable values there.
Any help on what to use or examples about how to do this would be greatly appreciated.
Update: according to the policy of the windows phone store you are not alowed to use paypal for example and can nly use Windows Phone in app payments.
This example from visualstudiomagazine should work: http://visualstudiomagazine.com/articles/2013/07/01/in-app-purchasing-for-windows-phone-8.aspx
They explained it very good AND uses the legal way with the Windows Phone SDK 8.0.
Only those payment methods that support Windows store for IAP.

Facebook login via application or webview if app is not installed in Windows phone 8

Basically I want to achieve the same fucntionality which you normally see in android or ios devices. So if I click on login it should open facebook application(not webview) if facebook is installed but in case app is not installed it should open webview.
Currently it shows me a message do you want to search on store which I don't want.
Any help will be highly appreciated.
Thanks
Vinod
Windows Phone SDK only has the API to launch an app from another app which wouldn't work in your case since you would not be able to share session tokens.
Your best approach to achieving this would be to try out the third party Facebook SDK for .NET. Take a look at the Login API which seems to provide the ability to invoke the facebook application on the app and if not available would take the user to the store (LoginBehaviorApplicationOnly - Windows Phone 8.1).
I understand you would like to bring up the WebView if app isn't available but this SDK doesn't seem to have that functionality. You could contribute to the project or request a feature addition.
Hope this gives you a good start?

Windows Phone 7 ShareStatusTask - Is it possible to customize it further?

ShareStatusTask statusTask = new ShareStatusTask();
statusTask.Status = "Blogging";
statusTask.Show();
There is a ShareStatusTask available in Windows Phone 7 which meets most of my needs. But I need to further customize it. Meaning, I have individual Facebook, Twitter, Live icons. When an user hits them, I should be able to popup the share status task with either Facebook or Twitter or Live pre-selected.
If they are not configured, I would show an error message probably to configure it in their device (under settings -> accounts).
Is there any code or inbuilt functionality available in Mango to access these ?
Unfortunately there is no way available to further customize it.
When you use ShareStatusTask (or some other similar tasks like ShareLinkTask), the control completely goes to the Operating System and we have nothing to do with.
If we really want to customize, we have to go for our own implementations using some third party libraries like Hammock or Twitterizer for Twitter and Facebook c# SDK for facebook.
Even with a little disadvantage, I would suggest to use ShareStatusTask for simple implementations, unless you need some picture sharing etc.

How to subscribe to get ShareLinkTask notifications in Windows Phone Mango?

In windows Phone Mango there is ShareLinkTask that allows users to share URL over email or with some application (Twitter client etc).
I cannot find phone API to subscribe my application to be able to receive URLs like that.
I would like my application to be on the list off apps to which user can share URL when he wants for example with long press on link in Internet Explorer and be able to get URL info when user shares that link with my app.
There are only Pictures Extensibility and Search Extensibility exists for Windows Phone 7
All extensions are declared in WMAppManifest.xml in extensions scope, so you can check yourself that there are no more extensions at that moment
If you decompile the Microsoft.Phone assembly and look at the class in question, you can see that this API call is hard coded to invoke the Me application via interop and does not utilize any kind of a registered application lookup. It certainly seems like it would be easy enough for MS to implement however.
This is not possible at the moment.

Categories