Mobideck / appdeck

AppDeck is a mobile hybrid application engine for iOS and Android.
http://www.appdeck.mobi/
47 stars 22 forks source link

Request: Get User ID from AppDeck API #85

Closed AIMMOTH closed 7 years ago

AIMMOTH commented 7 years ago

Currently it seems that the only way to get user ID by making an HTTP request to server and then read the header "AppDeck-User-ID". Instead of using this procedure, can't there be a AppDeck API call to get the user ID?

Also, I tried to use app.helper.ajax() to call my server but there was no "AppDeck-User-ID" header. How should I do the request?

Thanks

Edit: Does the AppDeck preview app send this or does it only send the header with the real app?

mdekermadec commented 7 years ago

I think this is an interesting request.

We will add this in our API.

About the header, you should see this header in all request (normal, ajax with or without helper).

If it is not there ... this is a bug !