Closed Siedlerchr closed 3 years ago
I encountered this problem and after debugging I found out it happens when the url to open (myUrl) contains spaces.
Actually, the following lines can be removed because you already initialize itemUrl in the lines before.
https://github.com/mostafa-mansour1/previewAnyFile/blob/b6c4fd6fb51fcca4aefa6f3c0737a0dcb980b54f/src/ios/PreviewAnyFile.swift#L267-L269
i merged it
npm has been updated as well https://www.npmjs.com/package/cordova-plugin-preview-any-file
I encountered this problem and after debugging I found out it happens when the url to open (myUrl) contains spaces.
Actually, the following lines can be removed because you already initialize itemUrl in the lines before.
https://github.com/mostafa-mansour1/previewAnyFile/blob/b6c4fd6fb51fcca4aefa6f3c0737a0dcb980b54f/src/ios/PreviewAnyFile.swift#L267-L269