Hi, thank you for viewing my post and i'm newbie on xcode but my project required to integrate with Wikitude SDK into my project. Anyone can help me or any suggestion?
Framework - IBM Mobilefirst 7.1 Hybrid Application
*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> Unable to parse constraint format:
Unable to interpret '|' character, because the related view doesn't have a superview
NSLog(@"This device is not supported. Show either an alert or use this class method even before presenting the view controller that manages the WTArchitectView. Error: %@", );
pluginResult = ;
}
;
}
A
Andreas Schacherbauer
said
over 7 years ago
Hi Jeffrey, Two things that seem a little bit odd:
* Is there a particular reason why you try to write a new Cordova plugin that uses our SDK instead of our already existing Wikitude Cordova plugin? * Your error message says that the architectView object has no superview. Did you make sure that self.view is not nil when you call
Best regards
Andreas
J
Jeffrey Tan
said
over 7 years ago
Hi Andreas,
Thanks for reply/comment.
1. My application is existing application cannot be simply used cordova plugin SDK(i thought because i will override my application behavior), please correct me if i m wrong since i'm new into this.
2. I tried to "Go To Definition" by click self.view and it is pointing to my CDVMainViewController, i think it should be correct and not a nil object?
Best regards,
Jeffrey
A
Andreas Schacherbauer
said
over 7 years ago
Hi Jeffrey, 1) If your application is a existing cordova managed application, you simply can add a new plugin everytime you want.
2) 'Go To Definition' is not a runtime check. Going to definition just shows you the type of self.view but not if it's nil at runtime or not. That you need to ensure at runtime (set a breakpoint or add a log output)
Best regards
Andreas
J
Jeffrey Tan
said
over 7 years ago
Hi Andreas,
For your suggestion, i have tried to proceed checking on my self.view in logcat and i realized it's nil object so i had changed it as self.view = ; and it doesn't error anymore but it doesn't prompt wikitude camera even it's go thru startWikitudeSDKRendering without any error. What did wrong until here?
2016-04-25 14:53:55.521 CPBVOCA === View is configure ===
2016-04-25 14:53:55.573 CPBVOCA === LicenseKey is configure ===
2016-04-25 14:53:55.589 CPBVOCA navigation: original URL: 'file:///var/containers/Bundle/Application/5DC70087-3AC0-4F20-9DC2-48900F5AF2DD/CPBVOCA.app/ArchitectWorld/index.html' - final URL: '(null)' - isLoading: '1' - wasInterrupted: '0'
2016-04-25 14:53:55.590 CPBVOCA Observer is configure
2016-04-25 14:53:55.590 CPBVOCA Subview is configure
2016-04-25 14:53:55.640 CPBVOCA Wikitude is Running - 0
2016-04-25 14:53:55.640 CPBVOCA Try to start wikitude sdk
2016-04-25 14:53:55.875 CPBVOCA Result is configure
A
Andreas Schacherbauer
said
over 7 years ago
Hi Jeffrey, Wikitude is Running - 0 doesn't look that good. Can you please also log the error object that is given in case the SDK could not start correctly.
Jeffrey Tan