'Kivy use Android Notifications
Is it possible to use python and/or kivy to send local notifications on ios? Really it does not have to vibrate, just a number icon and maybe a real-time message would work.
Edit:
Looking at the comments it seems that Pyobjus would be able to accomplish this, but i am not exactly sure how.
Ugh! my dreams are spoiled. My hackintosh is not yet complete and pybojus needs a mac! So it looks like this is going to be an Android app. But I still have no idea how to do this.
Solution 1:[1]
Since you've changed your topic to android...I can help!
Kivy has a sister project, plyer, providing a platform independent way to access different apis through a single pythonic interface. There are quite a few interfaces implemented for Android, including notifications, so you can use plyer directly and/or look at the code to see how it works.
As it happens I've previously made a short video about the android stuff, which you can find here. It's only a very quick introduction, but might help.
Solution 2:[2]
I hope this will help you.
import kivy.app
import plyer
class PushNotificationApp(kivy.app.App):
def show_notification(self):
plyer.notification.notify(title='test', message="Notification using plyer")
app = PushNotificationApp()
app.run()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | inclement |
Solution 2 | ???????????? ??????????? |