Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No download complete notification when downloading a pdf #17

Open
stevechang-emoney opened this issue Jul 14, 2021 · 0 comments
Open

No download complete notification when downloading a pdf #17

stevechang-emoney opened this issue Jul 14, 2021 · 0 comments

Comments

@stevechang-emoney
Copy link

Hi,

I'm using the downloadtofolder function to download several file types on IOS. When I download images, everything works great but when I download non image files, the notifications don't seem to be quite right. When I initiate the download, a notification pops up saying that I'm initiating the download and opens up the save file dialog which is all good. But when the download completes, I don't get a notification. Any idea what I'm doing wrong?

My code:

 let customNotifInput: EDFL_NotificationContent = {
    downloading: { title: "Downloading", body: 'Downloading ', color: '#06004a' },
    finished: { title: "Complete", body: 'downloaded successfully', color: '#004a00' },
    error: { title: "Error", body: 'Error downloading', color: '#810002' }
  };

 let notificationOptions: EFDL_Options = { notificationType: {notification: "custom"}, notificationContent: customNotifInput }

 let url = "https://www.adobe.com/support/products/enterprise/knowledgecenter/media/c4611_sample_explain.pdf";
 
 await downloadToFolder(url, "test.pdf", "Download", channelId, notificationOptions);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant