Try using extension for Google Chrome, Chrome UA Spoofer, for simulation iOS user agent in your browser.
Regards.
2014-04-03 7:28 GMT-03:00 Jeremy Burns <jeremyburns@classoutfit.com>:
We're developing an iOS app alongside a CakePHP web app. At this point the iOS developer is using the XCode simulator. I have some questions about how the PHP code should be altered to handle requests from iOS. We are learning as we go along...--- When I do a check for $this->request->isMobile() the result is false; is that because we are using the simulator?- When the right data is posted from the log in screen the users controller redirects the user to the next page. The iOS app is receiving the full HTML of that page. Do I need to put isMobile() checks throughout my PHP code and return different responses? See the false isMobile check above.- What part does the RequestHandler component play in this? I have included it in AppController.- The CakePHP app contains al the correct redirects and logic flow. Does the iOS app need to replicate these (in other words, the logic is stored in two places) or can the CakePHP code drive the redirect equivalent statements for iOS?- Are there any good resources for co-developing iOS and CakePHP apps?
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment