You are developing a cool iPhone app or planning to?
You are presenting your users with geo-referenced data?
You want to show points where they are in reality and give your users a WOW effect?
If you answered these questions with “Yes,” you definitely should read this blog post. If not, read it anyhow and maybe it will inspire the best idea of your life.
bonjour,
Je désire créer un calque pour personnaliser mes POI et eviter d’avoir le logo WIkitude.me.pensez vous que je puisse le faire sans connaissance en programmation?
merci
Hi Fred,
If you wish to customize your POIs and create your own World which is visible in Wikitude, you have different ways to do so. Please have a look here: http://www.wikitude.org/addcontent. If you need further information on how you can customize your World or how you can work with the Wikitude API just let me know.
Thx and greetings,
Nicola
Hello
I try to learn the api of wikitude but i’m new in iphone develop
so it’s hard to understand the api document
do you have any sample code for me?
It would be nice if wikitude publish some sample code.
Thx
Hi Dai,
Please download the latest iPhone API package. A sample application and the documentation of the API, is included in the zip file. If you have any further question regarding the use of the API, please contact me.
Thx and greetings,
Nicola
I just download the lastest API for iPhone, there is no sample app in there (only in the android api)
Anyway, i just gonna ask straingforward
So I just want to compile a simple app to make this api work in my XCODE
1. I make a new view-base app
2. copy the wikitube API to my scode, add all the requried framewoek
3. then in my view Controller, I add this
#import “WikitudeARViewController.h”
@interface test4ViewController : UIViewController
{
WikitudeARViewController* wikitudeAR;
}
@end
in my .m file, i do this
#import “test4ViewController.h”
@implementation test4ViewController
- (void) verificationDidSucceed{
NSLog(@”yes”);
}
- (void) verificationDidFail{
NSLog(@”yes”);
}
- (void) actionFired:(WTPoi*)POI
{
NSLog(@”yes”);
}
- (void) APIFinishedLoading{
NSLog(@”yes”);
}
- (void) didUpdateToLocation: (CLLocation*) newLocation
fromLocation: (CLLocation*) oldLocation
{
NSLog(@”yes”);
}
// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView {
wikitudeAR = [[WikitudeARViewController alloc]
initWithDelegate :????
applicationPackage :@”packagename”
applicationKey :nil
applicationName :@”appname”
developerName :nil];
}
I just don’t know what to put in the “initWithDelegate”, the document also is not clear for me…
could you help me? also please if possible add a sample for iphone
best
Hi Dai,
The iPhone API package should include a zip file (WikitudeAPI-SampleAPI.zip) which is the sample application.
If your test4ViewController implements the WikitudeARViewControllerDelegate (eg. test4ViewController : NSObject ) then you can put ‘self’ for the initWithDelegate. If you have any further questions you can also write me a mail (nicola.radacher(at)mobilizy.com).
Greetings
Nicola
Hi all,
I have just tryied the iphone api package yesterday but i have faced an issue to build the sample into the zip file.
I have had this logs in my console, if anybody can help me… :
ld: warning: in /Users/kiki/Desktop/Wikitude_iPhoneAPI_1.0.3/WikitudeAPI-SampleAPP/WikitudeAPI-SCM-Test/WikitudeAPI/libWikitudeAPI.a, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
“.objc_class_name_WTPoi”, referenced from:
literal-pointer@__OBJC@__cls_refs@WTPoi in WikitudeAPI_SCM_TestAppDelegate.o
literal-pointer@__OBJC@__cls_refs@WTPoi in CustomMenuButtonDelegateImpl1.o
“.objc_class_name_WikitudeARViewController”, referenced from:
literal-pointer@__OBJC@__cls_refs@WikitudeARViewController in WikitudeAPI_SCM_TestAppDelegate.o
literal-pointer@__OBJC@__cls_refs@WikitudeARViewController in CustomMenuButtonDelegateImpl1.o
literal-pointer@__OBJC@__cls_refs@WikitudeARViewController in CustomMenuButtonDelegateImpl3.o
“.objc_class_name_WikitudeARCustomMenuButton”, referenced from:
literal-pointer@__OBJC@__cls_refs@WikitudeARCustomMenuButton in WikitudeAPI_SCM_TestAppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I think xcode can’t find WTPoi, WikitudeARViewController & WikitudeARCustomMenuButton class but i can’t explain it!
Thanks
Hi Eric,
Did you test with the Simulator or the iPhone. This error msg seems like you tested with the Simulator which is unfortunately not possible at the moment. We are working on a version which allows testing with the Simulator as well. If you have any further questions, you can also contact me via mail (nicola.radacher(at)mobilizy.com)
Thx
Nicola
Hi all,
I am trying to run the sample application in nexus one but keep getting the ClassCastErrors. Can anyone provide a quick start for running the sample app BasicOpenARDemoActivity?
Hi Ryan,
Could you please provide me with details on the exception and firmware information of your Nexus One. Which Wikitude version have you installed on your phone? You’re welcome to write me these things in a mail as well (nicola.radacher(at)mobilizy.com).
Thx
Nicola
hi,
I have got sample code for wikitude API but i dont know how to use it and which parameter have to pass.Please give me more details so i can implement this.
Hi,
are there any news on issue posted by Eric?
Is it possible to create a build with iPhone simulator as target?
Thanks
Adolfo
Hi Manthan,
Thx for your interest in our API. Could you please send me your questions (especially if you use the Android or iPhone version) per mail. (nicola.radacher(at)mobilizy.com.
Greetings
Nicola
Hi Adolfo,
Unfortunately currently there is no possibility to build with the simulator. We’ll keep you posted.
Greetings
Nicola
Hi wikitude team,
I faced some trouble using Iphone SDK 4. I have got this issue : “___save_vfp_d8_d15_regs”, referenced from:
“___restore_vfp_d8_d15_regs”, referenced from:
after having installed sdk4. Can you tell me if wikitude api package for iphone is workinf with sdk4 or not?
thanks
Hi Eric,
The latest API version from the webpage does support SDK4. Does this happen if you try the Demo App? Please send me details via mail (nicola.radacher(at)mobilizy.com)
Thx
Nicola
Hi All,
The issue i have encountered just over :
….using Iphone SDK 4. I have got this issue : “___save_vfp_d8_d15_regs”, referenced from:
“___restore_vfp_d8_d15_regs”, referenced from:
Can be fixed by checking the option ‘Build Active architecture only’, in your build option.
Thanks Nicola for your support, i hope this post can help someone
Hi,
This framework is great (iphone) ! But I need help on those stuff :
1/ You talk about hide or show method in your documentation, because AR is a subview in my case. but I didn’t see the implementation. How to do that ?
2/ Is it possible to remove the tab bar ?
3/ Is it possible to start the view in landscape mode ? Be cause your lib have to detect an orientation change, but I want to display the AR view when turning on the landscape mode.
4/ Is it possible to customize the interface ?
Thank you for your job
Hi Sébastien,
Great to hear that you like our API. Here’s to your questions:
1. please check in the API package in the WikitudeARViewControllerDelegate there are hide/show definitions. In your appliation eg if you define a customButton to close the view, there you should call the hide. Once you wish to show the view again, call show
2. no currently the tab bar can not be removed. The distanceslider, custom menu buttons are currently displayed on the tab bar.
3. yes you can start the AR view also in landscape mode. You don’t need to ‘inform’ the view about the orientation in any way.
4. currently you can customize the icons which are shown on the icons and define an action for each POI. More options will come.
If you need anything further, just contact me.
Greetings
Nicola
Hi Nicola,
Thank you for your feedback ; I was mistaken because I took the API from the example ; it doesn’t seem to be up to date.
Have some others questions :
- Can we remove the distance limit ? Or set a new value ?
- Does the app should compile with the simulator (iOS4.1) ? I’ve got 21 errors … but it’s working on the device.
It should be great to have the possibility to more customize the interface, ie remove the tab bar, put the compass on the top left corner, manage distance … but it’s really good for now !
Thank you so much.
Hi Sébastien,
I will check that right away.
- The distance is calculated from the POI furthest away.
- Unfortunately currently the API can not be tested with the Simulator. We will change this soon. So until changed please use a phone for testing.
Thx
Nicola
[...] a simple AR treasure hunt game. I looked at the APIs for Layar, ARToolKit, Junaio, and settled on Wikitude for this test. Wikitude provides an augmented reality library that you can drop into your iPhone [...]
I ran into similar build and configuration errors with the Wikitude iPhone sample app. Here’s a step by step guide on how to get the sample app to build properly with minimal knowledge of XCode or iPhone development.
http://www.simple10.com/building-the-wikitude-sample-app-for-iphone-4/
I hope it helps.
Hi Nicola,
At the 5.11.2010 I’ll give a workshop in the lette-Verein in Berlin(Germany) ,a vocational school. The wikitude api is very suitable to demonstrate how to develop location based service Apps for the Iphone. But its necessary to buid and run the wikitude api in the simulator. Are there any hopes to get the right API soon?
greetings Oliver
Hi Oliver,
Thx for your interest in our API. We are currently working on improving the API and one point on the list is the Simulator usage. But we have no definite timeline when we will be able to release the changes. Could you please check in me (nicola.radacher[at]mobilizy.com) in about 2 weeks.
Thx and greetings
Nicola
Hi Nicola – I am very anxious to get wikitude working with my own POIs for the iPhone. I’ve downloaded all the code and documentation and got the project to run “as is” from the download in an XCODE project. However, I am unclear how to now add my own POIs. The documentation states (in a dialog style) to create a new WikitudeARViewController and I see a WikitudeARViewController.h file so I am confused do I need to create my own WikitudeARViewController.m file? It would really help if you could supply an example of the WikitudeARViewController.m code exactly as you have it in your project. I am having a hard time writing the code for the WikitudeARViewController and setting up the POIs. Thank you!
Hi Scott,
Please have a look at the sample app which is included in the download package. There you see in the APIFinishedLoading method where we add the POIs.
If you need anything further, just let me know.
Greetings
Nicola
Bonjour,
vous dites qu’il faut rajouter certains frameworks hors dans la documentation apres la ligne :
“ajouter ces frameworks dans Xcode :”
il n’y a rien donc serait il possible de savoir quels frameworks sont requis pour lancer une application avec l’API.
Merci
Hi I am having problems adding WTPoi objects in iPhone. The exception message is as follows: Please advise thank you!
2010-10-29 16:17:36.096 Buzz[1629:307] Got 1 POIs
2010-10-29 16:17:36.104 Buzz[1629:307] POIs stored successfully
2010-10-29 16:17:36.130 Buzz[1629:307] +[NSString stringIsEmpty:]: unrecognized selector sent to class 0x3ead746c
2010-10-29 16:17:36.191 Buzz[1629:307] CoreAnimation: ignoring exception: +[NSString stringIsEmpty:]: unrecognized selector sent to class 0x3ead746c
2010-10-29 16:17:36.280 Buzz[1629:307] *** Terminating app due to uncaught exception ‘NSRangeException’, reason: ‘*** -[NSMutableArray objectAtIndex:]: index 0 beyond bounds for empty array’
*** Call stack at first throw:
(
0 CoreFoundation 0x30897ed3 __exceptionPreprocess + 114
1 libobjc.A.dylib 0x3002f811 objc_exception_throw + 24
2 CoreFoundation 0x30829d79 -[__NSArrayM objectAtIndex:] + 184
3 Buzz 0x0004fb13 -[VSCamOverlayViewController displayPOIs:ignoreScreenFreeze:] + 466
4 Buzz 0x000530bb -[VSOverviewViewController redrawPOIs] + 114
5 Buzz 0×00053845 -[VSOverviewViewController accelerometer:didAccelerate:] + 48
6 UIKit 0×32016077 -[UIAccelerometer _acceleratedInX:y:z:timestamp:] + 130
7 UIKit 0x31eab493 -[UIApplication handleEvent:withNewEvent:] + 2602
8 UIKit 0x31eaa901 -[UIApplication sendEvent:] + 44
9 UIKit 0x31eaa337 _UIApplicationHandleEvent + 5110
10 GraphicsServices 0x31e4504b PurpleEventCallback + 666
11 CoreFoundation 0x3082cce3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
12 CoreFoundation 0x3082cca7 __CFRunLoopDoSource1 + 166
13 CoreFoundation 0x3081f56d __CFRunLoopRun + 520
14 CoreFoundation 0x3081f277 CFRunLoopRunSpecific + 230
15 CoreFoundation 0x3081f17f CFRunLoopRunInMode + 58
16 GraphicsServices 0x31e445f3 GSEventRunModal + 114
17 GraphicsServices 0x31e4469f GSEventRun + 62
18 UIKit 0x31e51123 -[UIApplication _run] + 402
19 UIKit 0x31e4f12f UIApplicationMain + 670
20 Buzz 0x0000209d main + 80
21 Buzz 0×00002048 start + 40
)
Hi,
Could you please give me more information when this exception occurs. You can also contact me via mail (nicola.radacher[at]mobilizy.com).
Greetings
Nicola
Thank you for your help and the results I see are great, I have an investigation of street lighting poles, I have worked with ESRI ArcGIS, and I have already georeferenced points, let me take your application to represent them, have some if I can help, great work and congratulations to your team
Hi,
I’m developing an iPhone app right now, and I’m planning to use your API for AR view in some part of my app.
But I’ve got a problem when I put “-objC” & “-all_load” in other linker flag,
the other library (zxing for qr code) I used, showing a lot of errors.
i.e:
….
“_kABPersonEmailProperty”,referenced from:
_kABPersonEmailProperty$non_lazy_ptr in libZXingWidget.a(AddContactAction.o)
….
I need some explanation what actually happens, and what should I do to solve this linker problem.
Thanks
Hi,
As a workaround for using -all_load you can use -force_load {path_to_external_lib}
Sample: “-force_load /Users/myname/Projects/ThirdParty/core-plot/framework/build/Release-iphoneos/libCorePlot-CocoaTouch.a”.
Greetings
Nicola
Hi Nicola,
Thanks for your advice. After I checked again the problem, it happened because of the -ObjC parameter, not the -all_load.
The problem was solved now, by adding some frameworks suggested by the ZXing developer. Thanks for your effort.
By the way from what I read above, there is no way for us to change the tab? correct me if I’m wrong.
I’m just wondering is there any way to do that, or maybe on future release feature?
Regards,
Indra
Is it possible to add 3d models connceted to a coordinate with the WTPoi-class in iPhone and Android?
Hi Nicola
I’m using the Wikitude API for iOS, and i would like to know if i can add a button to the wikitude camera view to call the “hide” method.
Thanks in advance!
Hi Claudio!
Please have a look at the example application. The hide method can be called with the CustomMenuButtons.
Do let me know if you need anything further.
Thanks
Thanks for your help Veronica.
I’m using the Wikitude API Sample App.
There is a nib file named “VSPOIDetailViewController.xib” and i would like to know how to access the “contactActionButtonCollection” view. I have defined the “phone” and “email” attributes of my POI’s but i don’t have the “call, email” buttons in the bubble of the POI.
Also, when i tap on the WWW-button in the bubble of the POI in the AR Camera View, i see the UIWebView with the url difined in the url attribute of the POI, but i can’t interact with it, i mean, i can’t scroll down or follow the links of the webpage. There is a way to change that for to interact with the WebView?
And finally, in the UIWebView of the WWW-button, there is a button “Open In Safari” in the top bar and when i tap it, shows an UIAlertView with the title “Open_In_Safari”, the message “Close_App_Msg” and the “Ok”/”Cancel” buttons. How can i not show this UIAlertView?
Thanks in advance.