         logger.verbose "registerAPNS: " + JSON.stringify(req.body)
         try
             fields = {}
-            fields.proto = "apns"
             fields.token = req.body.pushToken
+
+            if req.body("appId")?
+                fields.appId = req.body("appId")
+            # temp variables for steedos
+            else if req.body.pushTopics?
+                if (req.body.pushTopics.length>1)
+                    fields.appId = "steedos"
+                else
+                    fields.appId = req.body.pushTopics[0]
+            else
+                fields.appId = "unknown"
+
+            fields.proto = "apns" + "|" + appId
+
             createSubscriber fields, (subscriber, created) ->
                 subscriber.get (info) ->
                     info.id = subscriber.id

            else
                fields.token = uuid()

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

            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
