Closed christiancannata closed 7 years ago
Hi, Are you sure that you use our SDK 5.3.0? We released it just yesterday afternoon.
I have downloaded this sample app: https://github.com/phonegap/phonegap-app-augmented-reality
I have installed latest version from repo:
but it doesn't work
Even if I try sample Project from wikitude docs I get this error
You downloaded the Wikitude Cordova example app from our GitHub page? I just created our example app through the script and run the application on an iOS 10 device which worked fine for me.
I would be really interested why it doesn't work for you. Can you share the WTARViewController.m
here?
The app from PhoneGap Day might not work as it uses an older version of our Cordova plugin.
Yes, I have try now to download from https://github.com/Wikitude/wikitude-cordova-plugin-samples and create the project, without problems.
I have try with two iphone 6 with iOS 10.0.1 and it doesn't works 😢
Here is my WTARViewController.m file:
// // WTArchitectViewController.m // Wikitude // // Copyright (c) 2014 Wikitude. All rights reserved. //
NSString * const WTArchitectDidLoadWorldNotification = @"WTArchitectDidLoadWorldNotification"; NSString * const WTArchitectDidFailToLoadWorldNotification = @"WTArchitectDidFailToLoadWorldNotification"; NSString * const WTArchitectInvokedURLNotification = @"WTArchitectInvokedURLNotification"; NSString * const WTArchitectDidCaptureScreenNotification = @"WTArchitectDidCaptureScreenNotification"; NSString * const WTArchitectDidFailToCaptureScreenNotification = @"WTArchitectDidFailToCaptureScreenNotification";
NSString * const WTArchitectNeedsDeviceSensorCalibration = @"WTArchitectNeedsDeviceSensorCalibration"; NSString * const WTArchitectFinishedDeviceSensorCalibration = @"WTArchitectFinishedDeviceSensorCalibration";
NSString * const WTArchitectDebugDelegateNotification = @"WTArchitectDebugDelegateNotification";
NSString * const WTArchitectNotificationURLKey = @"URL"; NSString * const WTArchitectNotificationContextKey = @"Context"; NSString * const WTArchitectNotificationErrorKey = @"Error";
NSString * const WTArchitectDebugDelegateMessageKey = @"WTArchitectDebugDelegateMessageKey";
@interface WTArchitectViewController ()
@property (nonatomic, strong) WTArchitectView *architectView; @property (nonatomic, assign) UIInterfaceOrientationMask supportedInterfaceOrientationsMask;
@end
@implementation WTArchitectViewController
(id)initWithNibName:(NSString )nibNameOrNil bundle:(NSBundle )nibBundleOrNil motionManager:(CMMotionManager *)motionManagerOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom initialization
self.architectView = [[WTArchitectView alloc] initWithFrame:[[UIScreen mainScreen] bounds] motionManager:motionManagerOrNil];
self.architectView.delegate = self;
self.architectView.debugDelegate = self;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didReceivedDeviceWillResignActiveNotification:) name:UIApplicationWillResignActiveNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didReceivedDeviceDidBecomeActiveNotification:) name:UIApplicationDidBecomeActiveNotification object:nil];
}
return self; }
(void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view.
[self.architectView setFrame:self.view.bounds]; [self.view addSubview:self.architectView];
if ([self.architectView respondsToSelector:@selector(setPresentingViewController:)]) {
[self.architectView performSelector:@selector(setPresentingViewController:) withObject:self];
}
[self.architectView setShouldRotate:YES
toInterfaceOrientation:[[UIApplication sharedApplication] statusBarOrientation]];
UISwipeGestureRecognizer *swipeBackRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(didSwipeBack:)];
swipeBackRecognizer.direction = UISwipeGestureRecognizerDirectionRight;
[self.view addGestureRecognizer:swipeBackRecognizer];
}
/* No public methods defined in WTArchitectViewController.h */
@end
For anyone having their plugin crashing under iOs 10.0.1: ios 10 privacy settings
So for example add this entry when using cordova-custom-config plugin to your config.xml
`
`
Sorry, but I've a newer on phonegap, can you describe what should I do?
Ok, I have installed cordova-custom-config plugin and I have added the code in config.xml, but nothing appeared, no alert and not work if I test the app from my iphone using phonegap dev app... 😢 Please help me!
@christiancannata: You still get the 'device not supported dialog'? I pushed a change for the Wikitude Cordova example application when running iOS 10 yesterday. It fixed a content privacy issue that only appears on iOS 10. Please note: This will not affect the device support behaviour.
@AndreasSchacherbauerWikitude Can you link the commit you made? For context, I'm trying to patch my existing app instead of rebuilding the samples you provide.
Edit - I also tried rebuilding the sample, but to no avail. Same error, which is geo/2d_tracking aren't permitted. I also tried @pwasem 's suggestion, and added a bunch more permissions. If I had to take a guess, this seems like a Wikitude permission mapping issue to new requirements. [WTWikitudeTypes.h (src/ios) & WTWWikitudePlugin.m]
Hi @n3il, This is commit I was referring to.
Do you get the 'device not supported' message for all devices running iOS 10?
Thanks @AndreasSchacherbauerWikitude
Yes, that's the error message
Just to give this another bump, ar.phonegap.com also has the same issue on iOS 10.0.2
@ytadesse, are you talking about the PhoneGap dev app? If so, please write them a mail since this is something the iOS application needs to set. The Wikitude SDK can not add this .plist entry.
Ahh, yes I am, @AndreasSchacherbauerWikitude! Just for specificity, what exactly should I ask them to add/modify?
They need to include the NSCameraUsageDescription key to there applications .plist, explaining why the application needs access to the camera.
Thanks, @AndreasSchacherbauerWikitude. Looks like the team at PhoneGap is already on it - https://github.com/phonegap/phonegap-app-developer/issues/445
Ahh, yes I am! Just for specificity, what exactly should I ask them to add/modify?
On Monday, 24 October 2016, Andreas Schacherbauer @Wikitude < notifications@github.com> wrote:
@ytadesse https://github.com/ytadesse, are you talking about the PhoneGap dev app? If so, please write them a mail since this is something the iOS application needs to set. The Wikitude SDK can not add this .plist entry.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Wikitude/wikitude-cordova-plugin/issues/114#issuecomment-255744752, or mute the thread https://github.com/notifications/unsubscribe-auth/ADh5YE-Inpu70N6REY5UmMf5vtR6cgWBks5q3LbKgaJpZM4J8PzD .
Regards,
N: Yohannes Tadesse E: ytadesse@gmail.com C: (917) 574-7670
They need to add the NSCameraUsageDescription key to there applications .plist, explaining why the application needs access to the camera.
Hi guys, I have an error with ios 10.0.1: "This device does not support the requirements to perform 2D tracking. * The iOS version on this device (10.0.1) is not supported.
Can you fix it? :)