Results 1 to 8 of 8

Thread: Something missing in "Build your first mobile app"

  1. #1
    Sencha Premium Member
    Join Date
    Nov 2010
    Location
    Pamplona - Spain
    Posts
    22
    Vote Rating
    0
      0  

    Default Something missing in "Build your first mobile app"

    After following all the instructions and setting my Yelp key (yelpKey = 'XUIZWfXpVG41viH6ebRWsw'), the app only displays a blank page with the "City Bars" title. Nothing else.
    I've also downloaded the
    Citybars670.xda. The result is exactly the same (see in attachment). What should be done ? I'm really stuck with this "first mobile app" and I guess that there's something wrong in the code or that some basic instruction is missing. Thanks in advance.
    Fernando
    Attached Images Attached Images

  2. #2
    Sencha User
    Join Date
    Dec 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default

    This is EXACTLY the same problem i have with two apps i made via tutorial and also after having downloaded Senchas final .xds example.

    http://www.sencha.com/forum/showthre...M-on-webserver

  3. #3
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    548
    Vote Rating
    44
      1  

    Default

    I suspect the answer to your problem can be found by looking at the "network" tab of the Chrome inspector. If your code is working, you'll see network (XHR) requests being made to Yelp. Investigate what you are sending to them and what their response is via that screen. I've never run that sample app but that's where I would look first... especially if you're not seeing errors on the console screen. It might be as simple as a bad Yelp key.

    Hope that helps
    John

  4. #4
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
      0  

    Default

    I've also had intermittent issues with Yelp not responding with anything. I'm going to run through this tutorial again today and tomorrow to make sure there are no typos or missing steps.

    BostonMerlin is right in that you should check that it works in Chrome first and use network tab to id any issues. Though I believe it uses JSONP so not XHR in that case but simple JS (scripts). It's called business_review_search I believe.
    Phil Strong
    @philstrong

  5. #5
    Sencha Premium Member
    Join Date
    Nov 2010
    Location
    Pamplona - Spain
    Posts
    22
    Vote Rating
    0
      0  

    Default Network check

    Thank you for the tip. I've checked the Network panel with the following result:
    • Headers:

    • Request URL:
      http://api.yelp.com/business_review_search?ywsid=XUIZWfXpVG41viH6ebRWsw&term=Bars&lat=42.808970599999995&long=-1.6539382999999999&_dc=1356619492748&page=1&start=0&limit=25&callback=Ext.data.JsonP.callback1
    • Request Method:
      GET
    • Status Code:
      200 OK
    • Response:
    Ext.data.JsonP.callback1({"message": {"text": "OK", "code": 0, "version": "1.1.1"}, "businesses": []})
    I get the a warning

    Resource interpreted as Script but transferred with MIME type text/plain: "http://api.yelp.com/business_review_...sonP.callback1".
    With your Yelp key the result is the same:



    Resource interpreted as Script but transferred with MIME type text/plain: "http://api.yelp.com/business_review_...sonP.callback1".

  6. #6
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
      0  

    Default

    Resource interpreted as Script
    - this is normal for JSONP

    The issue here is that your simply not getting back any results ... weird

    If you search cafe
    Code:
    http://api.yelp.com/business_review_search?ywsid=XUIZWfXpVG41viH6ebRWsw&term=cafe&lat=42.808970599999995&long=-1.6539382999999999&_dc=1356619492748&page=1&start=0&limit=25&callback=Ext.data.JsonP.callback1
    I get loads of results
    Phil Strong
    @philstrong

  7. #7
    Sencha Premium Member
    Join Date
    Nov 2010
    Location
    Pamplona - Spain
    Posts
    22
    Vote Rating
    0
      0  

    Default It works with "Cafe"

    Good enough, Phil! It works with "Cafe" instead of "Bars" as you say in your post. Weird as it is, the term for the example should probably be changed to avoid trouble. I'm happy to see it in action. Thank you very much for your support!

  8. #8
    Sencha User
    Join Date
    Dec 2012
    Posts
    12
    Vote Rating
    1
      0  

    Default Icon on map

    Does anyone have a tip how to implement an icon, like a small house, which shows on the map the searched place?

    Any help would be great.

    Albert

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •