Wikitude / wikitude-cordova-plugin

Wikitude's Augmented Reality Plugin for Cordova - working together with the Wikitude SDK library for Android and iOS. Provides image recognition and tracking, geo-based augmente reality and 3D rendering and animations in an augmented reality scene
https://www.wikitude.com
Other
199 stars 181 forks source link

iOs 10.0.1 compatibility #114

Closed christiancannata closed 7 years ago

christiancannata commented 8 years ago

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? :)

AndreasSchacherbauerWikitude commented 8 years ago

Hi, Are you sure that you use our SDK 5.3.0? We released it just yesterday afternoon.

christiancannata commented 8 years ago

I have downloaded this sample app: https://github.com/phonegap/phonegap-app-augmented-reality

I have installed latest version from repo:

screenshot 2016-09-14 09 44 47

but it doesn't work

christiancannata commented 8 years ago

Even if I try sample Project from wikitude docs I get this error img_4730

AndreasSchacherbauerWikitude commented 8 years ago

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.

christiancannata commented 8 years ago

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. //

import "WTARViewController.h"

import "WTArchitectView.h"

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

pragma mark - UIViewController Overriding

pragma clang diagnostic push

pragma clang diagnostic ignored "-Warc-performSelector-leaks"

pragma clang diagnostic ignored "-Wundeclared-selector"

if ([self.architectView respondsToSelector:@selector(setPresentingViewController:)]) {
    [self.architectView performSelector:@selector(setPresentingViewController:) withObject:self];
}

pragma clang diagnostic pop

[self.architectView setShouldRotate:YES
             toInterfaceOrientation:[[UIApplication sharedApplication] statusBarOrientation]];

UISwipeGestureRecognizer *swipeBackRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(didSwipeBack:)];
swipeBackRecognizer.direction = UISwipeGestureRecognizerDirectionRight;

[self.view addGestureRecognizer:swipeBackRecognizer];

}

pragma mark - Public Methods

/* No public methods defined in WTArchitectViewController.h */

pragma mark - Orientation Handling

pragma mark iOS 6

pragma mark iOS 5

pragma mark Wikitude SDK

pragma mark - Delegation

pragma mark WTArchitectView

pragma mark WTArchitectViewDebugDelegate

pragma mark - Notifications

pragma mark - Private Methods

@end

pwasem commented 8 years ago

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

`

Used to augment reality

`

christiancannata commented 8 years ago

Sorry, but I've a newer on phonegap, can you describe what should I do?

christiancannata commented 8 years ago

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!

AndreasSchacherbauerWikitude commented 8 years ago

@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.

n3il commented 8 years ago

@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]

AndreasSchacherbauerWikitude commented 8 years ago

Hi @n3il, This is commit I was referring to.

Do you get the 'device not supported' message for all devices running iOS 10?

n3il commented 8 years ago

Thanks @AndreasSchacherbauerWikitude

Yes, that's the error message

ytadesse commented 8 years ago

Just to give this another bump, ar.phonegap.com also has the same issue on iOS 10.0.2

AndreasSchacherbauerWikitude commented 8 years ago

@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.

ytadesse commented 8 years ago

Ahh, yes I am, @AndreasSchacherbauerWikitude! Just for specificity, what exactly should I ask them to add/modify?

AndreasSchacherbauerWikitude commented 8 years ago

They need to include the NSCameraUsageDescription key to there applications .plist, explaining why the application needs access to the camera.

ytadesse commented 8 years ago

Thanks, @AndreasSchacherbauerWikitude. Looks like the team at PhoneGap is already on it - https://github.com/phonegap/phonegap-app-developer/issues/445

ytadesse commented 8 years ago

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

AndreasSchacherbauerWikitude commented 8 years ago

They need to add the NSCameraUsageDescription key to there applications .plist, explaining why the application needs access to the camera.