Apple-Web-Push-Notification-Rails icon indicating copy to clipboard operation
Apple-Web-Push-Notification-Rails copied to clipboard

[feature request] add auth_token

Open wessoll opened this issue 11 years ago • 1 comments

It would be nice if you could add the authenticationToken to the add_device and delete_device actions. Otherwise there is no way of knowing which device_token corresponds to a particular user. You could easily do this by extracting the authenticationToken from the request header "Authorization" which consists out of "ApplePushNotifications yourAuthToken":

authenticationToken = request.headers["Authorization"] authenticationToken["ApplePushNotifications "] = ""

Thnx for the repo btw.

wessoll avatar May 20 '14 21:05 wessoll

Yes that implementation I left it upto the developer depending on how they want to map the user to the devise. Let me see how I can incorporate it into the gem in the standard template.

ankurp avatar May 20 '14 22:05 ankurp