This project aims to improve the forwarding of notifications from Android devices to Mac, iPhone, and iPad.
- Closer to the original notification content in Android
- Support for displaying the APP icon
- Support for copying the verification code in the SMS message
- Bark: Integrate with the Apple push service.
- SmsForwarder: Forward messages from Android to Bark Proxy.
-
Set up the Bark app on your device. Get the API key and encryption key (Optional) from the app.
-
Create the
.env
file by copying the.env.example
file and filling in the necessary information.Configuration Name Description DEBUG True|False
(Optional) Enable or disable debug modeBASE_URL The base URL for the Bark Proxy BARK_ENDPOINT (Optional) The endpoint for the Bark service BARK_APIKEY API key for the Bark service BARK_ENCRYPT_KEY (Optional) Encryption key for securing data SIGN_SECRET (Optional) Secret key used for signing data SIGN_EXPIRE (Optional) Expiration time for signed data (in milliseconds) API_AUTH_KEY (Optional) Authentication key for accessing the API -
Run the following command to start the server:
docker compose up -d
-
Configure the forwarding channels in
SmsForwarder
app using Webhook.-
For SMS
- Endpoint:
http://[host]:[port]/notify/sms
- Method:
POST
- Message Template:
{ "from": "[from]", "content": "[sms]", "timestamp": "[timestamp]", "sign": "[sign]", "device_mark": "[device_mark]" }
- Sign: {SIGN_SECRET}
- Headers:
Content-Type: application/json
Authorization
: Bearer {API_AUTH_KEY}
- Endpoint:
-
For App Notification
- Endpoint:
http://[host]:[port]/notify/app
- Method:
POST
- Message Template:
{ "from": "[from]", "app": "{{app_name}}", "title": "{{title}}", "content": "{{MSG}}", "timestamp": "[timestamp]", "sign": "[sign]", "device_mark": "[device_mark]" }
- Sign: {SIGN_SECRET}
- Headers:
Content-Type: application/json
Authorization
: Bearer {API_AUTH_KEY}
- Endpoint:
-