<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Demos don't worked too. in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Camera-error-on-iOS/m-p/1108139#M71114</link>
    <description>&lt;P&gt;Demos don't worked too.&lt;/P&gt;

&lt;P&gt;plugin camera version 2.1.0&lt;/P&gt;

&lt;P&gt;iOS version 9.3.2&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN&gt;what&lt;/SPAN&gt; &lt;SPAN&gt;do I&lt;/SPAN&gt; &lt;SPAN&gt;work&lt;/SPAN&gt; &lt;SPAN&gt;?!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2016 10:31:50 GMT</pubDate>
    <dc:creator>Felipe_X_</dc:creator>
    <dc:date>2016-06-27T10:31:50Z</dc:date>
    <item>
      <title>Camera error on iOS</title>
      <link>https://community.intel.com/t5/Software-Archive/Camera-error-on-iOS/m-p/1108137#M71112</link>
      <description>&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN&gt;Well guys&lt;/SPAN&gt;&lt;SPAN&gt;, okay?&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;SPAN&gt;I have a&lt;/SPAN&gt; &lt;SPAN&gt;difficulty here&lt;/SPAN&gt; &lt;SPAN&gt;on the&lt;/SPAN&gt; &lt;SPAN&gt;camera&lt;/SPAN&gt;&lt;SPAN&gt;'s&lt;/SPAN&gt; &lt;SPAN&gt;cord&lt;/SPAN&gt; &lt;SPAN&gt;using&lt;/SPAN&gt; &lt;SPAN&gt;Intel&lt;/SPAN&gt; &lt;SPAN&gt;XDK&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;when I click the&lt;/SPAN&gt; &lt;SPAN&gt;button that calls&lt;/SPAN&gt; &lt;SPAN&gt;the mobile&lt;/SPAN&gt; &lt;SPAN&gt;camera&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;android,&lt;/SPAN&gt; &lt;SPAN&gt;works&lt;/SPAN&gt; &lt;SPAN&gt;normal, now&lt;/SPAN&gt; &lt;SPAN&gt;when I click&lt;/SPAN&gt; &lt;SPAN&gt;an iOS&lt;/SPAN&gt; &lt;SPAN&gt;of&lt;/SPAN&gt; &lt;SPAN&gt;the following error:&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;TypeError&lt;/SPAN&gt;&lt;SPAN&gt;: undefined&lt;/SPAN&gt; &lt;SPAN&gt;is not&lt;/SPAN&gt; &lt;SPAN&gt;an object&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Evaluating&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;navigator.camera.getPicture&lt;/SPAN&gt;&lt;SPAN&gt;')"&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;SPAN&gt;Could someone&lt;/SPAN&gt; &lt;SPAN&gt;help me with this&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;source code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;var windowHeight;
var init = function () {
    windowHeight=window.innerHeight; 
};

var preventDefaultScroll = function(event) {
    event.preventDefault();
    window.scroll(0,0);
    return false;
};

var onDeviceReady=function() {    
    screen.lockOrientation('portrait');
    if( window.Cordova &amp;amp;&amp;amp; navigator.splashscreen ) {     
        navigator.splashscreen.hide() ;                
    }
};

function onSuccess(imageURI) {
    var pic1 = document.getElementById("foto");
    var changebutton = document.getElementById("tirarFoto");    
    pic1.src = imageURI;
}

function onFail(message) {}

function takepicture() {
    navigator.camera.getPicture(onSuccess, onFail, { quality: 50, destinationType: Camera.DestinationType.FILE_URI, saveToPhotoAlbum: true });
    screen.lockOrientation('portrait');
} 

window.addEventListener("load", init, false);  
window.document.addEventListener("touchmove", preventDefaultScroll, false);
document.addEventListener("deviceready", onDeviceReady, false);&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 18:41:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Camera-error-on-iOS/m-p/1108137#M71112</guid>
      <dc:creator>Felipe_X_</dc:creator>
      <dc:date>2016-06-24T18:41:27Z</dc:date>
    </item>
    <item>
      <title>Which version of camera</title>
      <link>https://community.intel.com/t5/Software-Archive/Camera-error-on-iOS/m-p/1108138#M71113</link>
      <description>&lt;P&gt;Which version of camera plugin are you using? And on what iOS version? Try the &amp;nbsp;Image Capture app from the Samples and Demos.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 21:55:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Camera-error-on-iOS/m-p/1108138#M71113</guid>
      <dc:creator>Swati_S_Intel1</dc:creator>
      <dc:date>2016-06-24T21:55:09Z</dc:date>
    </item>
    <item>
      <title>Demos don't worked too.</title>
      <link>https://community.intel.com/t5/Software-Archive/Camera-error-on-iOS/m-p/1108139#M71114</link>
      <description>&lt;P&gt;Demos don't worked too.&lt;/P&gt;

&lt;P&gt;plugin camera version 2.1.0&lt;/P&gt;

&lt;P&gt;iOS version 9.3.2&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN&gt;what&lt;/SPAN&gt; &lt;SPAN&gt;do I&lt;/SPAN&gt; &lt;SPAN&gt;work&lt;/SPAN&gt; &lt;SPAN&gt;?!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 10:31:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Camera-error-on-iOS/m-p/1108139#M71114</guid>
      <dc:creator>Felipe_X_</dc:creator>
      <dc:date>2016-06-27T10:31:50Z</dc:date>
    </item>
    <item>
      <title>Felipe, I just tried the</title>
      <link>https://community.intel.com/t5/Software-Archive/Camera-error-on-iOS/m-p/1108140#M71115</link>
      <description>&lt;P&gt;Felipe, I just tried the camera demo app on my iPhone 6s with iOS version 9.3 and it works fine. Your plugin version is correct. Is it possible you did not give access to camera when the app launched? You should have gotten a prompt to allow access to camera when you launched the app first time. If you skipped that step, please go in iOS settings, select your app and allow access to camera. Also, make sure you are not using any other camera plugin (just the plugin from the Core plugins list) that could conflict. The Camera app from the demo apps should work out of the box. I would delete any of your camera apps that you installed previously on your device, create a new app in XDK from samples and demo and build again. Please try again a fresh, it should work.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 16:38:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Camera-error-on-iOS/m-p/1108140#M71115</guid>
      <dc:creator>Swati_S_Intel1</dc:creator>
      <dc:date>2016-06-27T16:38:51Z</dc:date>
    </item>
  </channel>
</rss>

