Apple-Web-Push-Notification-Rails
Apple-Web-Push-Notification-Rails copied to clipboard
[feature request] add auth_token
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.
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.