Closed demant closed 9 years ago
How you get the app crash?
I opened it.
On Aug 31, 2015, at 7:43 AM, Norman Paniagua notifications@github.com wrote:
How you get the app crash?
— Reply to this email directly or view it on GitHub.
There is no menu for today, if there is no menu and the store is open the app will stay in a loop b/c it keeps trying to get the current menu, I can add a hack in the app to fix this kind of issue but in real world the store would not be open if there is no menu.
There is a menu set for today. There was no menu set for yesterday because it was the weekend. The store was not open on the weekend. This is a use case that happens every weekend and should have been built into the app, not sure how we missed it.
Jason Demant | Bento http://bentonow.com 415.997.9909
Download Bento https://itunes.apple.com/us/app/bento-asian-food-delivered/id963634117?ls=1&mt=8 and get your first meal for $7 with promo code 'Demant'!
On Mon, Aug 31, 2015 at 7:55 AM, Norman Paniagua notifications@github.com wrote:
There is no menu for today, if there is no menu and the store is open the app will stay in a loop b/c it keeps trying to get the current menu, I can add a hack in the app to fix this kind of issue but in real world the store would not be open if there is no menu.
— Reply to this email directly or view it on GitHub https://github.com/bentocorp/android/issues/139#issuecomment-136397154.
@norman784 It's been in the Business Logic doc forever under Dynamic Text, and I mentioned it to Gonzalo multiple times: https://github.com/bentocorp/ios/wiki/Business-Logic
IF (closed && time is 12:00am to 8:59pm)
Try to get today's menu with /menu/{date}
If today's menu returns a 404 (because of a weekend, for example), try to get the next menu with /menu/next/{date}
IF (closed && time is 9pm to 11:59pm)
Look directly for the next menu with /menu/next/{date}
It keeps crashing, reopening, crashing, reopening.