Android + App engine: user.getUserID() is null in endpoint

后端 未结 3 627
挽巷
挽巷 2020-12-14 23:28

I have an Android application with GAE server. I tried to authenticate the user as described on developers.google.com, I added the user parameter to the endpoint methods etc

3条回答
  •  情歌与酒
    2020-12-14 23:53

    I guess there is no good solution for it right now. I store e-mail as a normal property and remove it from default fetch group, I use long as a primary key (generated by AppEngine) and I query the entity by the e-mail property. I don't like my solution, I'll accept ( and implement :) ) a better one if anyone can provide.

提交回复
热议问题