Cloudinary Integration on iOS


#1

Hi,

Anyone who has integrated cloudinary API in ionic 2/3 app?

I have integrated this npm package -
https://www.npmjs.com/package/cloudinary

It works well when tested on browser via “ionic serve”, BUT fails when run on iOS app.

Any help is appreciated.


#2

Define “fail”.

Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Safari dev tools: https://ionic.zone/debug/remote-debug-your-app#ios Look at the console and network tabs for errors.


#3

“Fail” means nothing happens… progress bar keeps on rotating.

cloudinary.uploader.upload(
                    imageData,
                    (result) => {
                        alert(JSON.stringify(result));
                    },
                    {
                        public_id: "Test",
                        crop: 'limit',
                    });

Alert in callback method never fires.

Also, I am testing on iOS device. How do I use “Web Inspector” to view console on iOS device at the time of running app?