FAQ - iPhone Player
Where can I download the latest iPhone Player SDK ?
Answer: The latest iPhone Player SDK can be found at http://layar.com/player/.
Does Player SDK support Layar Vision ?
Answer: Yes, the latest Player SDK v2.0 supports Layar Vision. Now, you can launch a vision layer using this SDK.
Do I need to publish my layer in order to use it in the Player ?
Answer: Yes, please make sure that you have tested the layer in the Layar app carefully and publish it before integrating it into the Player.
Is it possible to have custom UI elements in the Player ?
Answer: Unfortunately, custom UI elements are not supported on the Player. The idea of Layar Player is to only provide AR experience to users, therefore, it is by design that no custom interaction is possible.
Is it possible to detect when Player closes ?
Answer: Yes, a callback mechanism is implemented to detect two close events of the Layar Player. For more information, please refer to the Player SDK documentation.
Is OAuth signing mandatory in order to run in the Layar Player?
Answer: Yes, you can run a testing/public layer in the Player and the OAuth Signing should be enabled on the Layer editing page in the layer publishing environment.
Is it possible to open the normal Layar browser from Layar Player ?
Answer: Yes, you can use http://m.layar.com/open/<layername> intent to launch the normal Layar browser from Layar Player. Using Layar://<layername> within Layar Player will only open another layer or refresh the current layer within the Player. Please note that if you want to launch another layer within the Player, please make sure that this layer also has OAuth enabled and in the layar intent you should also include the oauth key and oauth secret parameters and values, such as layar://<layername>/?oauth_consumer_key=<oauth_key>&oauth_consumer_secret=<oauth_secret>.
Is it possible to have interaction between the Player and the IPhone app which implements the Player ?
Answer: Yes, it is possible to use custom URL scheme in POI or Layer level action to have the possibility to interact with the IPhone application which hosts the Player. Please read here if you want to know more about how to implement Custom URL scheme for IPhone application.
Is it possible to pass tokens from the IPhone application to the Layar Player ?
Answer: Yes, you can use cookies to manage this. In the IPhone application, you can set a cookie using [[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookie:myCookie]; If this cookie's domain is set the same as the POI domain, it will be passed in any getPOIs request from the Player. This way you can set a key/value pair in this cookie and you will receive it on your server for every getPOIs request.
What's the user agent that the Layar Player sends ?
Answer: The Layar Player sends the following User-Agent header in all requests:[App name]/[App version] LayarPlayer/x.y [OS name]/x.y.z ([Brand] [Model]). for example "ConquAR/1.1.2 LayarPlayer/1.0 Android/2.2 (Sprint Terminator)"
Are there any tutorials on how to integrate Layar Player into an iPhone app ?
Answer: Yes, we have created a step by step tutorial on how to integrate Player SDK v2.0 into a simple iPhone app. Here is a third party tutorial which explains how to create an iPhone app using Dapp and integrate the Layar Player SDK into the app.
Support Notice
Please note that we provide support for any issues related to the Layar Player itself, including functionality, bugs and the connection between the Layar Player and the iPhone app. We do not provide support for questions regarding how to build an iPhone App.
For Known issues in the Layar Player SDK, please check the "Known Issues" section within the layar developer support environment.