ios - Wikitude does not work. Poi do not change the position on phone position change -


i trying integrate ar poi view wikitude in app. html used file example 4_pointofinterest_4_selectingpois. should render few point around location. it, points stay in same position time, although changed phone position. not have errors in console. how can fix ?

my code:

#import "viewcontroller.h" #import <wikitudesdk/wikitudesdk.h> #import "purelayout.h"  @interface viewcontroller () <wtarchitectviewdelegate>  @property (nonatomic, strong) wtarchitectview *architectview; @property (nonatomic, weak) wtnavigation *architectworldnavigation; @property (nonatomic, weak) iboutlet uiview *augmentedviewcontainer;  @end  @implementation viewcontroller  - (void)viewdidload {     [super viewdidload];     nserror *devicenotsupportederror = nil;     if ( [wtarchitectview isdevicesupportedforrequiredfeatures:wtfeature_geo | wtfeature_2dtracking error:&devicenotsupportederror] ) { // 1         self.architectview = [[wtarchitectview alloc] initwithframe:cgrectzero motionmanager:nil];         self.architectview.delegate = self;         [self.architectview setlicensekey:@"<license_key>"];          self.architectworldnavigation = [self.architectview loadarchitectworldfromurl:[[nsbundle mainbundle] urlforresource:@"index" withextension:@"html" subdirectory:@"4_pointofinterest_4_selectingpois"] withrequiredfeatures:wtfeature_geo];          [[nsnotificationcenter defaultcenter] addobserverforname:uiapplicationdidbecomeactivenotification                                                           object:nil                                                            queue:[nsoperationqueue mainqueue]                                                       usingblock:^(nsnotification *note) {                                                           if (self.architectworldnavigation.wasinterrupted) {                                                               [self.architectview reloadarchitectworld];                                                           }                                                           [self startrunning];                                                       }];          [[nsnotificationcenter defaultcenter] addobserverforname:uiapplicationwillresignactivenotification                                                           object:nil                                                            queue:[nsoperationqueue mainqueue]                                                       usingblock:^(nsnotification *note) {                                                           [self startrunning];                                                       }];          [self.augmentedviewcontainer addsubview:self.architectview];         [self.architectview autopinedgestosuperviewedgeswithinsets:uiedgeinsetsmake(0, 0, 0, 0)];     } else {         nslog(@"device not supported - reason: %@", [devicenotsupportederror localizeddescription]);     } }  - (void)startrunning {      if ( ![self.architectview isrunning] ) {         [self.architectview start:^(wtstartupconfiguration *configuration) {          } completion:^(bool isrunning, nserror *error) {             if ( !isrunning ) {                 nslog(@"wtarchitectview not started. reason: %@", [error localizeddescription]);             }         }];     }}  - (void)pauserunning {     if ( [self.architectview isrunning] ) {         [self.architectview stop];     }}  - (void)dealloc {     [[nsnotificationcenter defaultcenter] removeobserver:self]; }  #pragma mark - delegation  #pragma mark wtarchitectviewdelegate - (void)architectview:(wtarchitectview *)architectview didfinishloadarchitectworldnavigation:(wtnavigation *)navigation {     nslog(@"didfinishloadarchitectworldnavigation"); }  - (void)architectview:(wtarchitectview *)architectview didfailtoloadarchitectworldnavigation:(wtnavigation *)navigation witherror:(nserror *)error {      nslog(@"architect world url '%@' not loaded. reason: %@", navigation.originalurl, [error localizeddescription]); }  #pragma mark wtarchitectviewdebugdelegate  - (void)architectview:(wtarchitectview *)architectview didfailcapturescreenwitherror:(nserror *)error {     nslog(@"didfailcapturescreenwitherror %@",error); }  - (void)architectview:(wtarchitectview *)architectview didencounterinternalerror:(nserror *)error {      nslog(@"wtarchitectview encountered internal error '%@'", [error localizeddescription]); } 

current result: enter image description here

on iphone compass not work properly, fix required reset location settings iphone settings > general > reset > reset location & privacy. after application started work without code change.

the solution found roman wueest @ http://www.wikitude.com/developer/developer-forum/-/message_boards/message/665750?p_p_auth=xo5dd4bu


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -