Start a new topic

problems with the increased reality load in ios

Hello everyone I hope you can help me.

 

I have a problem in my Wikitude application with Phonegap, when I want to use it with iOS, Android is working quite well and loads everything I've put, but when I want to try it with an iOS device, it does not load the part of augmented reality, I use the Phonegap developer application and it doesn't load any of the Augmented reality, I get alerts and errors that I leave here.

I hope you can help me used the latest version of Wikitude and an iPhone 7 with iOS 12.2

 

I also leave the code I am using.

 

Beforehand thank you very much


var app = {

    // Application Constructor

    initialize: function() {

        this.bindEvents();

    },

    // Bind Event Listeners

    //

    // Bind any events that are required on startup. Common events are:

    // 'load', 'deviceready', 'offline', and 'online'.

    bindEvents: function() {

        document.addEventListener('deviceready', this.onDeviceReady, false);

    },

    // deviceready Event Handler

    //

    // The scope of 'this' is the event. In order to call the 'receivedEvent'

    // function, we must explicitly call 'app.receivedEvent(...);'

    onDeviceReady: function() {

        app.wikitudePlugin = cordova.require("com.wikitude.phonegap.WikitudePlugin.WikitudePlugin");

    },


    loadARchitectWorld: function() {

        app.wikitudePlugin.isDeviceSupported(function() {

          alert("Aqui entra");

            app.wikitudePlugin.loadARchitectWorld(function successFn(loadedURL) {

              alert("Por aqui tambien entra");

                }, function errorFn(error) {

                    alert('Loading AR web view failed: ' + error);

                    alert("Error en la carga de AR web");

                },

                cordova.file.dataDirectory + 'file:///www/ar.html', [ '2d_tracking' ], { camera_position: 'back' }

            );

        }, function(errorMessage) {

            alert(errorMessage);

            alert("Error en la funcion deviceSupported");

        },

        [ '2d_tracking' ]

        );

    }


};

1 Comment

Hi,


Please provide the following details:


  • Which version of the SDK are you using?
  • What Cordova version are you using?
  • Is this happening with the sample app or in your own app? If it happens with your own app, Does the sample app work on your device?
  • Do you get any other error ouput?
  • Is this message shown when you try to start the AR experience? If so, is the experience working within the SDK sample app without issues? If it's working, did you make sure to check and follow the setup guide?

Thx and greetings

Nicola

Login or Signup to post a comment