How to get dates/appointments from app into windows phone calender? - c#

I'm building an app that receives data about events (meetings etc.), and my task is to give the user the possibility for adding them (or some of them) to his device calendar.
Since there is no way in the windows phone API for write access to the user's calendar, how would you guys solve such a problem? Is there any recommended way to offer a file, data set or whatever to the user which he can store/add easily?

You could create a web service that outputs iCalendar (.ics) files and open them on your phone in a collapsed WebBrowser - that could work.

Related

How can I request the user to open Desktop Application in React?

I couldn't find the exact answer I was looking for. I have two applications - web application built with react and desktop application built in C# Forms. What I want is if the user goes to a certain page in the Web Application, the browser should open (with or without a request) the windows application and send data, like the user's id. Could you guys give me an advice how this can be done?
For that, when installing your windows C# form in the user machine, you need to register a custom protocol in the registery.
See How do I register a custom URL protocol in Windows?

Can I create a mutual login system for multiple windows store apps?

I have multiple windows store apps of a company and all of them have signing in option. What I am trying to do is create a mutual login system for all of my apps. In simple words, If user log into one app then he automatically signed in other apps.
I am using sqlite locally to maintain user's session data. So, I tried to access the one App sqlite file from other app by giving a static path to its installed location. But it won't open the sqlite file.
Can I put this sqlite file in any folder where other apps can access it too?
Is there any common folder/storage space in windows store app where other apps will be able to access this sqlite file?
Any help would be really appreciated, Thanks in Advance!
Although it doesn't help right now, Windows 10 does have a solution for apps from the same publisher sharing data. You can use ApplicationData.GetPublisherCacheFolder(folderName) to get access to one or more folders that you share amongst your apps.
As far as I know there is no common storage between apps. The best you can do is to store the sqlite file somewhere locally (let the user choose) and then hold permission to access that file in the MostRecentlyUsedList
This will allow your app to access it at any time. However, the user will have to manually open the file at least once with each app that needs to use the login.
The only way I can think of to do what you're trying to do without user interaction would be to write your own server backend and use the IP address / user agent string and other variables to uniquely identify a device. When the device logs in then all other requests from that device would be considered "logged in" until the user logs out from one of them.
This would be very insecure and I would not recommend it. Anyone could impersonate the user if they knew enough about the device they were using, and were behind the same router.

Editing the list of apps that appear when i share a file in Windows Store App

On a Windows Store App project im using the This method to send a email with an attachment, and it is working well
but i would like to know if there is a way to define wich apps appear on the share list, for example i don't want the crossed apps to show.
just the first one.
You can't do that. If you only want to send an e-mail you could call the e-mail app directly:
How to launch other apps https://msdn.microsoft.com/en-us/library/windows/apps/hh452690.aspx
Mailto syntax http://www.labnol.org/internet/email/learn-mailto-syntax/6748/

WinRT app - what data about user I can get?

I want to create an app (for Windows runtime), that will get data about user preferences, history of downloaded apps and so on. I want to gather that data and analise it to create some kind of App Advisor.
So: Can I get data like installed apps or something of that sort?
Not that I know of from a Windows Store app. You can get some of it through Windows.Management.Deployment APIs, but those are restricted to full-trust processes and thus have to be used from a desktop/Win32 application.

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