Need to open .ics calendar file in both Desktop & Mobile - mobile

We used iCal4j to generate the .ics file in our website. We have a button in our event page which will download .ics file, when we open the downlaod .ics in desktop it is working as expected, but not in Mobile both Android & iOS.
Any suggestion is appreciated.

Related

How do i open a local pdf file in the browser with the download option

I want to open a PDF file in the browser but instead of opening, it is downloading. I do not want to change the default settings of the browser.
If there any PDF viewer package which is easy to use, please refer.
I tried like this
first import the pdf
import Pdf from "../../../assets/pdf/abc.pdf";
then tried to open it like this
<a href={Pdf} target="\_blank" className="btn"\>Learn More</a>
But it is downloading the file. But I want to open it.
If you are using Chrome browser, select the three vertical dots in the upper-right corner.
Choose Settings > Advanced > Privacy and security. Select Site Settings > PDF documents.
Use the toggle switch next to Download PDF files instead of automatically opening them in Chrome to turn the feature on and off.
As a user you have full control, as a server you can only request the user follows your desires, but they do not have to.
A PDF application/pdf mime file is a potential source of exploit so just like a user can change settings to block adverts or images they can also block unsolicited display of a PDF.
The browsing client may choose to download and view or download only or do not download it is the same in Mozilla or Chromium, just different plugins.

embed content-disposition:inline pdf in react js

I want to view pdfs on the browser using embed and it is working on a PC but on a mobile phone, it is downloading the pdf not viewing it. How can I make the pdf readable in HTML on a mobile phone without downloading it?

OneDrive file picker doesn't show picker

I am trying to integrate the OneDrive file picker Javascript v 7.2 SDK into my Angular JS 1.6 web app. When I click on the "Open OneDrive", it opens up a pop-up window and shows the login screen. However, after logging in, I get redirected back to my web app in the popup window instead of showing the file picker. This happens randomly and sometimes it works showing me the files in the file picker.
I have followed the exact same steps mentioned in their documentation here https://learn.microsoft.com/en-us/onedrive/developer/controls/file-pickers/js-v72/open-file
I have a large application and since the issue is random, I am unable to reproduce this on a standalone app. Any inputs are much appreciated.

Mac office.js Word add-in open pdf using window.open

Env: Mac, Office 2016 build 15.26
On a button click, I fetch pdf base64 bytes from the server and call window.open to launch another browser instance to open pdf.
window.open("data:application/pdf;base64,"+ pdfbytes)
On Windows add-in, it works fine.
On Mac, the dialog box appears asking "choose application to launch'data:application/pdf"
All the applications are grayed out, so I could not select Safari or Chrome to launch pdf.
When I open add-in URL from Chrome browser on Mac, and click the same button, it launched new Chrome tab instance and opens the pdf fine.
Any better way to show pdf through word add-in?
this is a bug in the product, its now fixed and will ship as part of the December Office update for Mac. thanks for reporting this and making our platform better!

Web browser connection in codename one

when url like youtube.com or others are set, it opens in webBrowser but when pdf link is kept nothing happens, why is that??
WebBrowser pdfview = new WebBrowser();
pdfview.setURL("http://www.codenameone.com/files/developer-guide.pdf");
//this link downloads the pdf file in browser but does nothing in codename one browser...
f.addComponent(pdfview);
i jst want to view this pdf from the browser
Opening a PDF in the browser component will only work on devices and won't work in the simulator.

Resources