Mobile Website Add Reminder To User Calendar - c#

Developing a booking website in MVC5 C# and once the user has booked I want to added the booked date to the user's calendar if they access the website via a mobile device.
I've been looking around the web to find if there is any solution but all I've seen are device specific solutions for Android or iOS mobile app developmemt. I want to look for a solution that will be tailored to access the calendar on all mobile devices or even just Android and iOS.
I want to know if this is possible and a starting point like a C# library?

For security reasons, you can't access the user's calendar directly from a web app.
What you can do, though, is providing him an iCalendar file that will contain the details about what he just booked. When opening such a file, the user will be prompted to add it to his calendar. Nice thing about this solution: it works for almost all platforms, mobile and desktop.
To generate the iCalendar file in C#, you can use DDay.iCal.

Related

Can Unity Open ICS Files on Android or iOS?

I have a volunteering app that I made in Unity. When someone signs up for a volunteer event, I want to show them a confirmation page that lets them add the event to the calendar of their choice.
Google Calendar is easy because I can make a string for the URL, and use Application.OpenURL to take them out of my app and to the right link. From there they just need to (1) not touch anything AND (2) press OK and it's added to their calendar. (This is working fine!)
Microsoft Outlook and Apple Calendar are tougher, though. They use these ICS files. So I figured I would generate an ICS file and have them open it when they press the button, which should automatically take them to the correct calendar app on their phone. But it looks like Android and iOS don't allow Unity to use OpenURL to open local files on your phone anymore...
Has anyone solved this? What should I do?
TLDR: OpenURL works for Google Calendar links to the Internet, but not for local files.

Create a payment via the Windows Store in Windows Universal Apps

Is possible to create a payment via Windows Store when purchased content is a HTML content downloaded from cloud in Windows Universal Apps? I was only able to find, that Window Store provides:
Time trial
In-app purchases (this is close, but with in-app purchases all content must be part of application and I'm using downloadable HTML content from cloud, which isn't part of application)
Ads
So, I'm basically talking about situation, when Windows Store works like Payment system (like PayPal)... Or can you give me any advice how to handle this type of purchases across platforms (iOS, Android, Kindle, ...)?

Windows Phone: Detect the source from which the app is downloaded for eg. directly from store, mobile site app link etc

Is there any way to detect the source from which the app is downloaded? For example if the app has been downloaded directly from the store or it was redirected to store from some mobile site. Something similar to CampaignTracking in Android. Any library which can detect this?
If you are looking for a Rate & Review mechanism, use the MarketlaceReviewTask class. It is documented here. Here's a simple method to do it:
MarketplaceReviewTask mrktreview = new MarketplaceReviewTask();
mrktreview.Show();
You can fire this code from a click event or something similar. This opens the rate and review page for your app, after it is published in the store. That is all Microsoft is providiing currently to help the developers. If you are looking for detailed tracking or instant bug detection (after the app is published), you can use third party services that can do this. I recommend Appboy.
Unfortunately not.
As distinct from Android, Apps can only be deployed through the store (or a developer sideload) on Windows Phone. But there is no way to recognize whether a website hyperlinked to the store page or the user downloaded it directly via the store application.
I found a few links regarding the same. Flurry provides the support for campaign tracking through its library. A few links help here.
Flurry http://www.flurry.com/
Distimo
http://www.distimo.com/conversion-tracking
Tapstream
https://tapstream.com/developer/windows-phone-sdk-documentation/
https://tapstream.com/developer/conversion-api/

Save appointments to my default calendar in WP 8.1

I was hoping that with the new calendar API of wp8.1, I am now able to fully replace the native calendar app with my own.
But after a few hours of searching in the API documentation, I came to the point that this is still NOT possible.
This is what i concluded so far:
I can create my own AppointmentCalendar with full read and write access. But this calendar won't sync to my other devices.
I can add/remove/edit appointments in all other Calendars, but just over the native UI with the AppointmentManager. This still takes some time to open the native calendar app and the user has to manually press the save button.
There is still the old way. I need to dive into the Outlook.com/Google Calendar/... APIs, to save appointments straight out of my own calendar app.
Is there a way to set my default calendar (Outlook.com) from Readonly (ReadWrite=Systemonly) to ReadandWrite(ReadWrite =full)?
The platform AppointmentCalendar API doesn't allow for writing directly to a online calendar provider.
To implement write-support, you would need to implement a custom provider for each calendar, for example Outlook.com and GMail.com each have individual APIs, although IMAP often can be used as a default protocol. Each requires individual authentication.
For Outlook.com you would need to utilize OAuth, ideally via. Single Sign-On, and then use the IMAP API to integrate your application with the Outlook.com calendar.
So in short, there is no way for 3rd party developers to fully replace the default calendar application on Windows Phone when it comes to writing appointments. All you can do is to write a different visual front for the built-in calendar.

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.

Categories

Resources