Black screen on iOS devices

0 votes
asked Apr 15, 2018 by sethisahil27 (180 points)
I'm using Easy AR for augmented reality and it is working on android devices but not on iOS devices. I get black screen on iPhones and iPads as soon as I open my Easy AR scene.

 I'm using Easy AR 2.0 SDK with Unity 2017.3, I also have the OneSignal SDK in m project, could that be causing this problem?

I read that we need to merge all the AppControllers in the project, I'm not sure on how to proceed with this, can anyone help?

1 Answer

0 votes
answered Apr 15, 2018 by albert52 (31,850 points)
**
* Copyright (c) 2015 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved.
* EasyAR is the registered trademark or trademark of VisionStar Information Technology (Shanghai) Co., Ltd in China
* and other countries for the augmented reality technology developed by VisionStar Information Technology (Shanghai) Co., Ltd.
*/

#import <UIKit/UIKit.h>
#import "UnityAppController.h"

// original EasyAR functions
extern "C" void ezarUnitySetGraphicsDevice(void* device, int deviceType, int eventType);
extern "C" void ezarUnityRenderEvent(int marker);

// original Mobile Movie Texture functions (add or modify the below functions)
extern "C" void MMTUnitySetGraphicsDevice(void* device, int deviceType, int eventType);
extern "C" void MMTUnityRenderEvent(int marker);

// merged functions for EasyAR and Mobile Movie Texture (add or modify the callings)
extern "C" void ezarUnitySetGraphicsDeviceMerge(void* device, int deviceType, int eventType)
{
    ezarUnitySetGraphicsDevice(device, deviceType, eventType);
    MMTUnitySetGraphicsDevice(device, deviceType, eventType);
}

// merged functions for EasyAR and Mobile Movie Texture (add or modify the callings)
extern "C" void ezarUnityRenderEventMerge(int marker)
{
    ezarUnityRenderEvent(marker);
    MMTUnityRenderEvent(marker);
}

@interface EasyARAppController : UnityAppController
{
}
- (void)shouldAttachRenderDelegate;
@end

@implementation EasyARAppController

- (void)shouldAttachRenderDelegate;
{
    // register the new merged functions
    UnityRegisterRenderingPlugin(&ezarUnitySetGraphicsDeviceMerge, &ezarUnityRenderEventMerge);
}
@end


IMPL_APP_CONTROLLER_SUBCLASS(EasyARAppController)
commented Apr 16, 2018 by sethisahil27 (180 points)
this assumes that I've also included movie texture as well, but I'm not using movie texture in the project. Will this still solve the issue ?
commented Apr 16, 2018 by albert52 (31,850 points)
Is there a detailed log information?
commented Apr 16, 2018 by sethisahil27 (180 points)
No , I don't have logs . I tried building it without OneSignal SDK in the project and I the Camera opened but as soon as I scanned the card, the app crashed.
commented Apr 16, 2019 by sarahimsworth01 (120 points)
Hi did anyone solve this?

Thanks
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...