All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.malliina.push.mpns.PushUrl.scala Maven / Gradle / Ivy

There is a newer version: 1.24.4
Show newest version
package com.malliina.push.mpns

import play.api.libs.json.Json

/** The same device may open different push URLs at different points in time, however the old ones still work until the
  * channel is closed, it seems. We only accept one push URL per device however, otherwise the same push notification
  * is sent multiple times to the same device. Therefore we need another way of uniquely identifying a device, and that
  * is the tag.
  *
  * @param url device token
  * @param silent true for a silent notification, otherwise false
  * @param tag tag that IDs the device
  */
case class PushUrl(url: MPNSToken, silent: Boolean, tag: String)

object PushUrl {
  implicit val json = Json.format[PushUrl]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy