-
20 Dec 2012 11:35 AM #1
Something missing in "Build your first mobile app"
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
-
23 Dec 2012 7:12 PM #2
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
-
26 Dec 2012 8:22 AM #3
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
-
26 Dec 2012 1:03 PM #4
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
#SenchaArchitect
Sencha Architect Development Team
SenchaCon or bust!
Known Bugs in Architect Latest
-
27 Dec 2012 7:06 AM #5
Network check
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": []})
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".
-
27 Dec 2012 8:59 AM #6
- this is normal for JSONPResource interpreted as Script
The issue here is that your simply not getting back any results ... weird
If you search cafe
I get loads of resultsCode: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
Phil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
SenchaCon or bust!
Known Bugs in Architect Latest
-
28 Dec 2012 2:08 AM #7
It works with "Cafe"
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!
-
3 Jan 2013 8:11 AM #8
Icon on map
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


Reply With Quote