Re: Interfacing with Android app (and/or iPhone)

2010-07-28 Thread Mario
Hi Shaz,

thank you very much for your answer and interesting lead.

> To answer both in one go - why not just create an app that uses the
> built in rendering engine (webkit i think) for logging in /
> identifying user/phone within your app?

The package is webkit, you are right, official page at:
http://developer.android.com/reference/android/webkit/package-summary.html

And I also found a small tutorial (didn't try it yet) at
http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/how-to-pure-html-android-application/

But let me better understand your approach, not sure I understood. You
are suggesting to serve from Cake HTML pages (probably styled or
created on purpose) that can be browsed by the Android app?

Best, Mario

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Interfacing with Android app (and/or iPhone)

2010-07-27 Thread Shaz
> * I expect to exchange data via JSON (services already in place for
> some JS and Flex features) but as the request is not coming from a
> browser, how do I get info about the user / phone? Some info are
> contained in the HTTP request? How do I parse them?

> * Authentication: which the best (and reasonably secure) method to
> send login and password (or new user registrations) to the Auth logic?


To answer both in one go - why not just create an app that uses the
built in rendering engine (webkit i think) for logging in /
identifying user/phone within your app?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Interfacing with Android app (and/or iPhone)

2010-07-27 Thread Mario
Hi all,

I have developed with CakePHP a "social network" website complete with
mobile version for mobile browsing. Users are authenticated with Auth
and also tracked with cookies if not authenticated.

Now I want to develop the related Android app (and later on the iPhone
one), but before starting I have in my mind a number of unresolved
(and probably not too clever...) questions, all related to the
possible best practices to interface a CakePHP server with mobile
app... For instance:

* I expect to exchange data via JSON (services already in place for
some JS and Flex features) but as the request is not coming from a
browser, how do I get info about the user / phone? Some info are
contained in the HTTP request? How do I parse them?

* Authentication: which the best (and reasonably secure) method to
send login and password (or new user registrations) to the Auth logic?

I would really appreciate any help or link to related topics.

Thank you in advance.

Best,

Mario

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en