(c *fiber.Ctx)
| 25 | } |
| 26 | |
| 27 | func PushDestinations(c *fiber.Ctx) error { |
| 28 | // TODO: figure out what the hell this is supposed to do to make notifications not crash. |
| 29 | // old_udid := c.Query("old_udid") |
| 30 | // udid := c.Query("udid") |
| 31 | // environment := c.Query("environment") |
| 32 | |
| 33 | // app_version=4.1.3& |
| 34 | // device_model=iPhone& |
| 35 | // device_name= |
| 36 | // enabled_for=23& |
| 37 | // environment=3& |
| 38 | // language=en& |
| 39 | // old_udid=d89b164326e0c50494438d5bd360988c53e672f0& |
| 40 | // send_error_codes=true& |
| 41 | // system_name=iPhone%20OS& |
| 42 | // system_version=4.2.1& |
| 43 | // token= |
| 44 | // udid=291C3725-6221-4B96-A897-3436AE9D48DF |
| 45 | |
| 46 | // return c.SendString(fmt.Sprintf(` |
| 47 | // |
| 48 | // <?xml version="1.0" encoding="UTF-8"?> |
| 49 | // <TwitterApplePushDestination> |
| 50 | // |
| 51 | // <enabled-for>1</enabled-for> |
| 52 | // <available-levels>3</available-levels> |
| 53 | // <token>base64-encoded-device-token</token> |
| 54 | // <udid>device-udid</udid> |
| 55 | // <environment>production</environment> |
| 56 | // <device-name>iPhone</device-name> |
| 57 | // <device-model>iPhone12,1</device-model> |
| 58 | // <system-name>iOS</system-name> |
| 59 | // <system-version>15.0</system-version> |
| 60 | // <language>en</language> |
| 61 | // <app-version>1.0.0</app-version> |
| 62 | // |
| 63 | // </TwitterApplePushDestination>`)) |
| 64 | return c.SendStatus(fiber.StatusNotImplemented) // This just crashes atm, so lets just disable it for now till we can figure this out. |
| 65 | } |
| 66 | |
| 67 | // TODO |
| 68 | func GetSettings(c *fiber.Ctx) error { |
nothing calls this directly
no outgoing calls
no test coverage detected