R
R
Renselto2014-11-12 22:16:07
bash
Renselto, 2014-11-12 22:16:07

How to make notification from Bash script on iOS?

I am writing an application for myself in bash + python, I created a shortcut on SpringBoard, it runs a python script in the background, but that's bad luck, what about notifications?
At the moment I'm using the say utility from Big Boss Recommended Tools, which speaks the text, but it doesn't work. I would like any text notifications. Maybe there are some utilities in Cydia to call a push from the terminal or call a fake sms or banner. Maybe you can somehow write to the SMS database or something like that. Any text notifications will do. Thanks in advance for any help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2015-01-21
Syomochkin @mak_sim

Pushbullet might work .
This is a fairly powerful service for sending various notifications. Its client side is available on both iOs and android.
All you need to do is in bash script:

curl https://api.pushbullet.com/api/pushes \
      -u $API_KEY: \
      -d device_iden=$DEV_ID \
      -d type=note \
      -d title="Заголовок" \
      -d body="Тело сообщения" \
      -X POST

API_KEY can be viewed here .
And DEV_ID, for example, in the address bar of the browser by opening the connected device in their web interface.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question