Scroll
Follow

[FIXED] Player Bug: Get "no content available" message when launch a layer in the iPhone Player

Dear All,

It seems like the server update (v5.0.6) released yesterday makes it impossible to launch a layer in the layar Player on iPhone. Error message "no content available" is returned. Our development team is working on it and tries to get it back to work as soon as possible.

Very sorry for the inconvinience!

Best Regards,

The layar Team

Was this article helpful?
2 out of 2 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    xuan

    Dear All,

    We just fixed the iPhone Player issue on production. Please let us know if it is still not working for you! Very sorry for the inconvenience!

    Best regards,

    Xuan

  • Avatar
    maksdesk

    Hi Xuan and Slavek,

    I have some serious questions regarding the Layar Player:

    1. I downloaded and have used the SDK file labeled '11820', I used it in Xcode and the build succeeds but has following issues: [a] the 3D models are displaying at lower than their set level, and when i adjust the relAlt value in my database/table it has no affect on that problem [b] even the banner is not displaying properly, it is only displaying the title of the POI and image and rest of the 'lines' are missing

    2. I then downloaded again the SDK labeled '26May' and that is not letting me build in Xcode, I am getting errors labeled 'MachO...linker...' etc.

    3. i am therefore copying a screenshot of these errors and my xcode app, please have a look and advise

    4. what confuses me is that about 2-3 weeks back everything was working fine for me, the 3D models were displaying at the correct height and everything...i can't understand what is now wrong this whole week I have been checking everything over and over again but cannot solve the problem, the only thing different I am doing is that I am launching the player twice in my app, for a published layer and a test layer...

    thanks in advance

  • Avatar
    valeriy

    try now

  • Avatar
    maksdesk

    Thanks so much Valery, I just tried it:

    1. build succeeded (the only difference is you have added the localisation bundle?...or if there is anything else please let me know for future reference...)

    2. banner is displaying correctly

    3. the 3D model is displaying but this time it is slightly higher than it displays in the Layar client...i am not sure how to adjust that...please advise

    4. furthermore, for the test layer the 3D model is not displaying at the set location but at the device's current location

    5. could the reason for above two issue be that I am using the same file for 'icon' and 'reduced' and 'full'...

    thnx and best regards.

    Mohammad

  • Avatar
    maksdesk

    Hi guys, any progress on my querry? basically the issue is that Layar-Player is displaying differently from the Layar client, I need URGENT advice as to how to resolve this issue, I need the player to work smoothly for my PhD research proposal and also my idea for launching an app on the App Store, please respond...

  • Avatar
    xuan

    Hello Mohammad,

    This sounds like there is something to do with the "alt" and "relativeAlt" in the JSON response. If you want to put the object at a fixed altittude, you need to return "alt" in the response. However, this "alt" will only be picked up when there is a GPS fix and the user altitude is known to the device. If this is the case, in the getPOIs request there will be an "alt" parameter. If user's altitude is not known, the "alt" in the response will be ignored. This is possibly a bug fixed in the current IPhone layar browser client but not in the current Player SDK.

    If you want, please let us know the layer name and we can help identify the issue.

    Best Regards,

    Xuan

  • Avatar
    maksdesk

    Thanks Xuan, the layer names are:

    1. usydmideatest (published)

    2. alternative2 (test)

    In my prototype app I am using the Layar-Player to open the first one on page 3 and the second one on page 5.

    I have gone through your work-around suggestion posted elsewhere and tried to assign a "0" value to alt/relAlt in my database table, and in my earlier test it did have an affect on the display, i.e. the 3D model was appearing at ground level when I entered a value between 40 and 50 in relAlt, but was very unreliable, the image was flickering across various vertical positions. Then since last week even that is mysteriously not working, and though Valery's repaired version of my project displays the model but at a fixed location, right in front of the device, not according to the assigned coordinates.

    I will be very grateful if you folks can please resolve this whole issue for me, please remember that basically my request is that THE PLAYER CAN PERHAPS BEHAVE THE SAME WAY AS THE CLIENT - OR IF NOT THEN THERE CAN PLEASE BE A RELIABLE WORK-AROUND -  this is critical for my prototype to work, and my PhD admission is hanging on it...also i am eager to finalise the app and submit it to the Apple AppStore ASAP...

    I even want to enter the Layar Vision competition, i have a great idea based on a paper published by my supervisor and myself (CADDFutures2011), but I have to finish this Player project first...

    Thanks and best regards.

  • Avatar
    xuan

    Hello Mohammad,

    I checked both layers at location lat: -33.846972 and lon: 151.038652. My question is how you want to position this POI ? Do you just want to place it on top of the grid level or you want to put it at a specific altitude ?

    If you just want to keep it just on top of the grid level, you do not need to return "alt" and "relativeAlt" at all. In the JSON response below, you returned null for both parameters, I suggest to remove them to see whether it makes any difference (we used to have a bug which considers alt :null as alt:0).

    If you want to put a POI at a certain specific altitude, be aware that this is not always known to the device. You are strongly recommended to only set "alt" in the response when the "alt" is passed through the getPOIs request.

    If you are still experiencing this issue, can you share some screenshot with us ? 

    I also had a look at this layer on the Player, the model size is much bigger on the player which is a known issue to us. This should be fixed in the next player release.

    {

        "layer": "usydmideatest",

        "hotspots": [

            {

                "id": "0",

                "attribution": "",

                "title": "Council Proposal",

                "lat": -33846972.7519,

                "lon": 151038652.36,

                "imageURL": "http://www.ceed-intl.net/test/iPlan/2D-images/display.jpg",

                "line4": "",

                "line3": "[tap here for options]",

                "line2": "",

                "type": "0",

                "actions": [

                    {

                        "label": "Feedback",

                        "uri": "http://www.ceed-intl.net/test/iPlan/iPlanWeb1/index.html"

                    }

                ],

                "dimension": "3",

                "alt": null,

                "relativeAlt": null,

                "transform": {

                    "angle": "45.0000000000",

                    "scale": "1.0000000000",

                    "rel": false

                },

                "object": {

                    "baseURL": "http://www.ceed-intl.net/test/iPlan/3Dfiles/",

                    "icon": "sculpture2.l3d",

                    "reduced": "sculpture2.l3d",

                    "full": "sculpture2.l3d",

                    "size": "35"

                },

                "distance": "15742.6408980428"

            }

        ],

        "errorCode": 0,

        "errorString": "ok"

    }

  • Avatar
    maksdesk

    Thanks for your attention Xuan, it has been raining all day here in Sydney, so I have not been able to get the in-situ screenshots (for the player) will post them as soon as I can, as I am eagerly awaiting to solve this problem...

  • Avatar
    maksdesk

    By the way Xuan, with regard to the alt setting you have suggested, can't we set the '0' value in our database table, I don't fully understand your instructions...thnx and best rgrds

  • Avatar
    maksdesk

    Hi Xuan, the latest position is as follows:

    The player display is different from the client, as per screenshots given below (image_1 is the client view and image_2 is the player view, the layer name is usydmidetest). It is the same layer and the same location, still the view is different in the client and the player.

    I shall be grateful if you can please urgently review/examine the issue of the difference in the two views. Please note that the object is a large sculpture, so the client view shows an eye-level view, but the player shows it firstly at a slightly elevated height and secondly, the position is not based on the set geo-coordinates but keeps changing as the device is moved, i.e. it appears to be fixed in relation to the position of the device rather than GPS coordinates. 

    And one other question which i would like to ask by the way is whether we can set the player to retrieve the POI data from a database located in the device itself rather than relying on a webserver.

    Thanks and best regards, shall await your response, I will check back in 2-3 hours.

    Mohammad.

  • Avatar
    xuan

    Hi Mohammad, 

    "alt:0" in the response means that you want to put the object at the sea level where altitude of the object is 0 meter. This value is only picked up when there is a GPS fix on the device. I am not sure whether this is what you want to have. Just to make sure that it is not the issue, please do not return any "alt" or "relativeAlt" parameter in the JSON response.

    But according to your description, the issue is not that the 3d model is placed lower or higher than expected but it is jumping around as you walk. There was an issue about POIs being too jumpy on iPhone. It is improved in the current iPhone layar reality browser (v5.0.3) but not for the current Player SDK.

    The same fix will be applied to the future release of the iPhone Player (there is no estimate date yet, maybe in Q4 of 2011).

    About the second question, unfortunately, it is not possible to cache POI data on the device yet. We will consider this feature request for the Player in the future.

    Best Regards,

    Xuan

  • Avatar
    maksdesk

    Thnx Xuan, please note:
    1. You r right about 'alt', I have set it to null so the returned vaue must be 0, so I will try various values......
    2. What about the GPS coords? At present the SDK is ignoring the GPS coords, and the object is displying in a fixed position, I.e. No matter where the device is, it just displays the object in the same size, only the direction changes...

  • Avatar
    xuan

    Hello Mohammad,

    The POI in your layer is returned with a fixed lat,lon which means it will be placed there no matter where the user is. To me, it is correct that it sticks to some where. If you walk closer to it, the size of the object should become bigger and bigger. A known issue to us is that the 3d object is sometimes jumpy in the Player.  

  • Avatar
    maksdesk

    Thats true in the case of the client view, but in the player view when the same layer is opened the object first of all appears at a different altitude (slightly higher, approx.2m, than the client view), and secondly no matter how far or close I walk from or to it, the size remains the same...i feel so helpless....I spent hours and hours trying to debug...

  • Avatar
    xuan

    Hi Mohammad,

    Just tested your layer, it seems like your server is returning some errors.

    About Player is placing POIs 2m higher, I suggest to show grid in the Player to see whether the object is placed right above the grid level. Please note that if you are testing from different distance, it might look like it is higher or lower.  In the player you can use  augmentedRealityViewController.showGrid = YES;

    If the object is actually placed higher than the grid level, please send us a screenshot.

    As I mentioned before, the objects are jumpy which probably makes it difficult to see different sizes since the render size is influenced by the distance between the object and the device (GPS coord). Layar Reality browser on iPhone and the iPhone Player share the same code base. This will be corrected in the coming release of the Player.

  • Avatar
    maksdesk

    i will try to get you the screenshot that you have requested (with the grid), but I am not sure if that screenshot will help in identifying/resolving the issue because we already know for sure that the layer/object is displaying differently in the player as compared to the client...anyway I will still try to get the screenshot for you.

    Furthermore, I thought of a way out of this problem: we could use the intent call to display the layer in an app, just as the player does. Only problem is that the intent call first displays the launch page of the client, but this could be easily circumvented if you could change the client settings to display the designated layer directly from the intent call, bypassing the launch page. and then to return back to the original app, the developer can add the app's url via the 'actions' settings in the client.

    i think this option could help resolve the whole set of the player bugs once and for all, don't you guys think so? if you agree then please arrange this option for me: all that needs to be done is that the settings in the client need to be adjusted to introduce an option of a layer-specific intent call that allows a developer to call a layer without the launch page...I am sure you guys know how to change those settings, I came across a page that explains it here:  http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

    So in other words you would offer two types of intent calls that developers can use, one would be with the launch page (which checks whether the browser is installed on the device or not), and the other which skips the launch page and directly opens the specific layer view (with the presumption that the browser is already installed on the device, or this could be handled within the UI of the app the developer is working on). 

    I think that would be really cool!!! i would urge you folks to introduce this feature ASAP...perhaps quickly enough for me to be able to complete my app and not miss the admission deadline for my PhD course!!

    Thanks and best regards.

  • Avatar
    stephaneag

    Hy everyone! ,

    I am new to the layar platform and after all my searches on the différent forums on the web i think i am finally about to get the answer to my current problem:

     

    As i am quite new in Obj-C coding and as I had problems implementing layar in a simple app , i ended up learning how to make it while i studied the "LPDemo" I found on your website.

    Now i know how to implement it right, but i have one remaining problem:

     

      while using the Layar Player in "LPDemo", I am able to see my layer , its image and details, but not able to see any POIs, nor on the camera, map ,or list (..).

      very frustrating , I have to say, as in the Layar App , when going to "Test", I am able to see my layers ( I have 2 debug layers for layar), launch one of them, and see correctly all my POIs , in either list / camera / map ().

     

    Maybe someone is having the same problem, and would also appreciate any help on this....

    I started to think that I had to publish my layer to make it available for any app ( outside of Layar App ), but i still have a feeling of sort of "nonsense" in thinknig so (...)

    Any truly appreciated ! ;p

     

    Thanks in advance

  • Avatar
    stephaneag

    Anyway i tried to publish it to get an approval ....

    If it's actually the "problem", i'd be way much happier

    Btw: the layer is called " WP layer pois "

    Thanks in advance

Powered by Zendesk