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> 

  


Hi,


If this problem is on Unity, it is most likely related with the camera permissions not being granted (or even asked for) by the application. The sample application does this in the Main Menu scene (MenuController.cs), which is probably missing from your build.


Best regards,

Alexandru

is any get solve this problem? please let me know how?

1. I dont know, maybe 28?

2. I dont think so.

3. Unity 2018.3.12f1.

4. No, only Black Screen with Logo on my Phone.

5. Sony Xperia XZ1 Android 9 and Samsung S7 Android 8

6. always, with my own and samples


Wikitude is the Startup version.


image



Hi Mario,


Could you please share more details about your issue?

  • Which version of the SDK are you using?
  • Are you using the JS API?
  • Are you using any of our Extensions (Titanium, Cordova, Xamarin, Unity)? If yes, which version are you using?
  • Is there any crash log?
  • What device does this happen with (os Version and model)?
  • 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?

Thanks,

Eva

HELLO??????????????????????????????????????? no support?

 I have the same problem. If i test my"app", i have onla thiy black screen with the Trial Logo. What goes wrong?

need reply asap

Login or Signup to post a comment