
Sending Push Messages to your Watch or Phone
tyckr automatically registers all devices with Google’s Cloud Messaging service, enabling seamless delivery of push messages and push notifications through a straightforward and simple HTTP API call.
The message may be enhanced with additional features such as images, icons, and custom colors to improve the user experience.
HTTP API call
To send a push message directly to your watch, phone or tablet, simply make an HTTPS GET or POST request using the following format:
https://api.tyckr.io/v1/push?tid={tid}&pin={pin}&title={title}&msg={message}&icon={icon}&image={image}&color={color}&slot={slot}
Parameters
Key | Mandatory | Description | ||
---|---|---|---|---|
tid |
required |
The 8-digit tyckr ID of the device. |
||
pin |
required |
The 5-digit Push PIN. |
||
title |
required |
The message title text. |
||
msg |
optional |
The message body / content text. |
||
icon |
optional |
An icon name to display an icon in the message, see the available Icon Facelet names. |
||
image |
optional |
A valid image URL, which must be accessible by the device.
|
||
color |
optional |
Message title color in RRGGBB format like "FFA000" for Orange. |
||
slot |
optional |
Slot number (0-7), defaults to 0 |
Response Codes
Code | Description |
---|---|
200 |
Message successfully sent to Cloud Messaging service. This is no guaranty that the message will be delivered to the device. |
400 |
Format error. |
401 |
Unauthorized, the tid or pin is wrong. |
403 |
Forbidden, the IP is banned for 24h. |
404 |
Device not found in database. |
429 |
Too Many Requests, the daily quota is exceeded. |
500 |
Server error, the device token has expired or any other server errors. |
Examples
The shortest call to send a push notification is like:
https://api.tyckr.io/v1/push?tid=ABCDEFGH&pin=12345&title=This%20is%20a%20test%21
Just set the TID, PIN and Title and you’re good to go!
Send an image URL, like a still of a surveillance cam:
https://api.tyckr.io/v1/push?tid=ABCDEFGH&pin=12345&title=See%20this&image=https%3A%2F%2Fpicsum.photos%2F200
Enhance your message with a warning icon and a red title:
https://api.tyckr.io/v1/push?tid=ABCDEFGH&pin=12345&title=See%20this&color=FF0000&icon=warning
Important
|
Please ensure that all Notification permissions are enabled for tyckr on your device. Otherwise, you can’t see any tyckr notifications. |
Push Message To Go
Send a test push message directly to your device: