Mobile apps can register the device by calling the REST interface provided by the Services module. Don't forget to enable the push_notifications resource. This module adds a permission called 'register device token'. On y roles with this permission may register a device token throuh a service. This module should work with both anonymous and authenticated users.
This service requires 2 arguments: