I’m developing an email application using Ionic 4.
I want to connect the email providers that support IMAP on my application.
I managed to install the IMAP Client plugin https://www.npmjs.com/package/emailjs-imap-client and solved all of its problems using these 2 plugins:
ionic cordova plugin add cordova-plugin-chrome-apps-sockets-tcp
ionic cordova plugin add cordova-plugin-chrome-apps-runtime
The application is able to download emails, but the plugin is very unreliable which makes my whole feature unreliable.
The plugin downloads several email messages before stopping and returning the following error:
Error: Socket timed out!
at ZoneDelegate.invokeTask (polyfills-es2015.js:3741)
at Zone.runTask (polyfills-es2015.js:3518)
at invokeTask (polyfills-es2015.js:3815)
at ZoneTask.invoke (polyfills-es2015.js:3804)
at timer (polyfills-es2015.js:6000)
Can anyone help me? Has anyone tried something like this on an Ionic project?
I have also tried to use a different IMAP plugin https://www.npmjs.com/package/imap, but I wasn’t able to make it work on an Ionic 4 project.