             else
                 fields.token = uuid()
 
-            if req.param("appId")?
-                fields.appId = req.param("appId")
+            if req.body("appId")?
+                fields.appId = req.body("appId")
             # temp variables for steedos
             else if req.body.pushTopics?
                 if (req.body.pushTopics.length>1)

        logger.verbose "registerAPNS: " + JSON.stringify(req.body)
        try
            fields = {}
            fields.proto = "apns"
            fields.token = req.body.pushToken
            createSubscriber fields, (subscriber, created) ->
                subscriber.get (info) ->
                    info.id = subscriber.id

            else
                fields.proto = "web"

            if req.body("token")?
                fields.token = req.body("token")
            # temp variables for steedos
            else if req.body.pushToken?
                fields.token = req.body.pushToken
