meteor / mobile-packages

Meteor packages that provide functionality on mobile and desktop via Cordova plugins.
Other
339 stars 153 forks source link

iOS-device: undefined is not an object (evaluating 'navigator.camera.getPicture') #93

Closed Streemo closed 3 years ago

Streemo commented 9 years ago

Using the mdg:camera package. Call to MeteorCamera.getPicture works perfectly on Android device. However, on iOS device, it throws the above error. Any ideas as to why this is happening?

The code is being called in a 'click' Template event. We tried wrapping the call in a Meteor.startup, but this did not work.

Has anyone else encountered this problem?

Thanks; help much appreciated.

Edit:

In the Safari web inspector for my iPhone (physical device), navigator.camera === undefined (including in Meteor.startup code). In Android, it is defined, and works as expected.

lucfranken commented 9 years ago

Related forum topic https://forums.meteor.com/t/piece-of-code-in-mdg-camera-works-in-cordova-android-but-not-ios/12745

StorytellerCZ commented 3 years ago

Closing this issue due to age.