Yes, that sounds similar to what i do.
- i created a custom auth user table, it happens to be called end_user
(though it can be called auth_user):
auth.settings.table_user_name = 'end_user'
auth.settings.table_user = db.end_user.table
auth.define_tables()
- My end_user table has some fun fields, the one you are interested in is:
Field('apns_tokens', 'list:string')
- Oauth happens with the client
- client then does a POST to our api (/api/v7/user) with the APNS token as
the payload
- if i don't already have the APNS token i add it to the list and register
it with my APNS service (you may use a 3rd party service such as
UrbanAirship or Parse, or build your own)
- note that i keep a list of tokens because my users have multiple devices
and so multiple tokens.
- we are starting our android port now....so i don't have an opinion about
that yet.
does that help?
cfh
On Wednesday, February 13, 2013 9:52:10 PM UTC-8, chris_g wrote:
>
> Thanks for all the interesting responses.
>
> Here is Apple's description of the Push notificaiton process:
>
> http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html
>
> There appears to be a similar framework for Android:
> http://developer.android.com/google/gcm/index.html
>
> To clarify, this process uses a "Device Token" which is generated per
> app/iPhone . The UDID is not shared with the notification provider (ie the
> web2py app).
> This process is not designed as an alternative to authentication. I am
> looking at OAuth in addition to Push notifications. Push notifications It
> is merely to notify the user of status changes with the application.
>
> Fortunately my potential requirement will only involve authenticated users
> receiving notifications. I would be guessing that the Device token would be
> attached to the session data and/or to the auth_event table.
> Presumably, users can be simultaneously logged in on iOS and Android
> devices and would expect to receive the correct notifications for their
> respective devices.
>
> At this point I have done very little research into this, but I wanted to
> start discussing these schemes with other developers who are encounter
> similar needs.
>
>
>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.