Cannot read property 'then' of null in Iphone 5S

When I run my app through iPhone 5S Safari it presents the error below.

My app is hosted on Firebase Hosting, Chrome Desktop browser is working perfectly.

TypeError: Cannot read property 'then' of null
    at /Production/hosting-origin-backend/lib/reqPrepper.js:27:40
    at Layer.handle [as handle_request] (/Production/hosting-origin-backend/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Production/hosting-origin-backend/node_modules/express/lib/router/index.js:317:13)
    at /Production/hosting-origin-backend/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Production/hosting-origin-backend/node_modules/express/lib/router/index.js:335:12)
    at next (/Production/hosting-origin-backend/node_modules/express/lib/router/index.js:275:10)
    at /Production/hosting-origin-backend/lib/challengeResponder.js:24:14
    at tryCatch (/Production/hosting-origin-backend/node_modules/rsvp/dist/rsvp.js:539:12)
    at invokeCallback (/Production/hosting-origin-backend/node_modules/rsvp/dist/rsvp.js:554:13)
    at publish (/Production/hosting-origin-backend/node_modules/rsvp/dist/rsvp.js:522:7)
    at flush (/Production/hosting-origin-backend/node_modules/rsvp/dist/rsvp.js:2414:5)
    at nextTickCallbackWith0Args (node.js:420:9)
    at process._tickCallback (node.js:349:13)

You can try like this

getPicture () : any {
    // my options here

    return this.platform.ready().then(() => {
      navigator.camera.getPicture((result) => {
        console.log(result); // Called
        return Promise.resolve(result);
      }, (err) => {
        return Promise.reject(err);
      }, options);
    });
}

I hope your problem will be fixed
Good Luck
Thank you

That plugin won’t work in the safari browser at the present time I think.

For the sake of a safari delivered web app you can do something like…

There’s a camera implementation using input type=“file” which works great for that scenario.