'cannot access pdf using public url uploaded on cloudinary

I am trying to access pdf using public url uploaded on cloudinary however url request has been successfully completed but nothing showed.

Permission : Blocked for delivery shows in properties of pdf on cloudinary



Solution 1:[1]

Based on a recent update to our security policies, we've restricted delivery on newly created Free accounts for PDFs and Archive files. Such files can still be uploaded, but the restriction is specifically on delivery.

For PDFs that are uploaded with resource_type - "image", as they support transformations, they can be converted to images and will be delivered - e.g. by using the page transformation (pg_ in URLs) and setting the extension to jpg. -

in javascript we just need to replace extension to .jpg

 response?.data?.url.replace(".pdf", ".jpg")

source

Solution 2:[2]

If you are on a free plan and need to deliver files in these formats, you can navigate to the Security tab of Settings in the Management Console and select to 'Allow delivery of PDF and ZIP files' or find it at the bottom.

Solution 3:[3]

Basically, I don't recommend any solution for push notifications instead of firebase.

But if you have your reasons to use socket in this case I suggest you take a look into this package how it uses background service and tries to implement your own way to setup socket-based notification background service.

https://pub.dev/packages/background_locator

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mohsin Zahid
Solution 2 Chance Desire IRADUKUNDA
Solution 3 Tareq Amenah