Start a new topic

Black Screen with Trial words only

Hello! Im currently having a problem opening the camera view. When i load Architect world it succeed but it only shows a black screen with the word trial on it.


Project Details:

Cordova: 8.1.2

Wikitude Plugin Version: "8.2.0"


 

<!DOCTYPE html>

<html>
    <head>
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
		<script src="https://www.wikitude.com/libs/architect.js"></script>
        <title>Hello World</title>
    </head>
    <body>
		
        
		<button style="width: 50%; margin-top: 50%; margin-left: 25%; font-size:50px" id="cam">Start Augmented</button>
		<button style="width: 50%; margin-top: 55%; margin-left: 25%; font-size:50px" id="clo">Close</button>
		<script type="text/javascript" src="cordova.js"></script>
		<script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/index.js"></script>
    </body>
</html>

 

var wikitudePlugin;
$(document).on('deviceready',function(){
		wikitudePlugin = cordova.require("com.wikitude.phonegap.WikitudePlugin.WikitudePlugin");
		var requiredFeatures = [ "2d_tracking", "geo" ];
		var arExperienceUrl = "www/index.html";
		var startupConfiguration = { "camera_position": "back"};
		
		$('#cam').click(function(){
			wikitudePlugin.isDeviceSupported(function(){
				wikitudePlugin.loadARchitectWorld(
				function(url){
					alert("Success");
					wikitudePlugin.show();
				},
				function(err){
					alert("Error"+err);
				},
				arExperienceUrl,
				requiredFeatures,
				startupConfiguration
				);
			},
			function(){
				alert("Not Supported and cp mo bulok haha");
			},
			requiredFeatures);
		});
		
		$('#clo').click(function(){
			wikitudePlugin.hide();
		});
});

$(document).on('pause',function(){
	wikitudePlugin.onPause();
});

$(document).on('resume',function(){
	wikitudePlugin.onResume();
});

$(document).on('backbutton',function(){
	wikitudePlugin.onBackButton();
});
 

  

var wikitudePlugin;
$(document).on('deviceready',function(){
		wikitudePlugin = cordova.require("com.wikitude.phonegap.WikitudePlugin.WikitudePlugin");
		var requiredFeatures = [ "2d_tracking", "geo" ];
		var arExperienceUrl = "www/index.html";
		var startupConfiguration = { "camera_position": "back"};
		
		$('#cam').click(function(){
			wikitudePlugin.isDeviceSupported(function(){
				wikitudePlugin.loadARchitectWorld(
				function(url){
					alert("Success");
					wikitudePlugin.show();
				},
				function(err){
					alert("Error"+err);
				},
				arExperienceUrl,
				requiredFeatures,
				startupConfiguration
				);
			},
			function(){
				alert("Not Supported and cp mo bulok haha");
			},
			requiredFeatures);
		});
		
		$('#clo').click(function(){
			wikitudePlugin.hide();
		});
});

$(document).on('pause',function(){
	wikitudePlugin.onPause();
});

$(document).on('resume',function(){
	wikitudePlugin.onResume();
});

$(document).on('backbutton',function(){
	wikitudePlugin.onBackButton();
});
 

  

<!DOCTYPE html>

<html>
    <head>
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
		<script src="https://www.wikitude.com/libs/architect.js"></script>
        <title>Hello World</title>
    </head>
    <body>
		
        
		<button style="width: 50%; margin-top: 50%; margin-left: 25%; font-size:50px" id="cam">Start Augmented</button>
		<button style="width: 50%; margin-top: 55%; margin-left: 25%; font-size:50px" id="clo">Close</button>
		<script type="text/javascript" src="cordova.js"></script>
		<script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/index.js"></script>
    </body>
</html> 

  

1 Comment

need reply asap

Login or Signup to post a comment