android-notify 1.31__py3-none-any.whl → 1.32.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of android-notify might be problematic. Click here for more details.
- {android_notify-1.31.dist-info → android_notify-1.32.1.dist-info}/METADATA +39 -38
- {android_notify-1.31.dist-info → android_notify-1.32.1.dist-info}/RECORD +4 -4
- {android_notify-1.31.dist-info → android_notify-1.32.1.dist-info}/WHEEL +0 -0
- {android_notify-1.31.dist-info → android_notify-1.32.1.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: android-notify
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: A Python package that simpilfies creating Android
|
|
3
|
+
Version: 1.32.1
|
|
4
|
+
Summary: A Python package that simpilfies creating Android notifications in Kivy apps.
|
|
5
5
|
Home-page: https://github.com/fector101/android-notify
|
|
6
6
|
Author: Fabian
|
|
7
7
|
Author-email: fector101@yahoo.com
|
|
@@ -26,10 +26,8 @@ Requires-Dist: pyjnius>=1.4.2
|
|
|
26
26
|
<br>
|
|
27
27
|
<h1> Android-Notifiy </h1>
|
|
28
28
|
<p> A Python library for effortlessly creating and managing Android notifications in Kivy android apps.</p>
|
|
29
|
-
<p>
|
|
30
|
-
|
|
31
|
-
</p>
|
|
32
|
-
<br>
|
|
29
|
+
<p>Supports various styles and ensures seamless integration and customization.</p>
|
|
30
|
+
<!-- <br> -->
|
|
33
31
|
<!-- <img src="https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/democollage.jpg"> -->
|
|
34
32
|
</div>
|
|
35
33
|
|
|
@@ -38,11 +36,12 @@ Requires-Dist: pyjnius>=1.4.2
|
|
|
38
36
|
- Compatible with Android 8.0+.
|
|
39
37
|
- Supports including images in notifications.
|
|
40
38
|
- Support for multiple notification styles:
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- Large Icon
|
|
39
|
+
- [Simple](#basic-usage)
|
|
40
|
+
- [Progress](#progress-bar-notification)
|
|
41
|
+
- [Big Picture](#notification-with-an-image-big-picture-style)
|
|
42
|
+
- [Inbox](#inbox-notification-style)
|
|
43
|
+
- [Large Icon](#notification-with-an-image-large-icon-style)
|
|
44
|
+
- [Big Text](#big-text-notification-will-display-as-simple-text-if-device-dosent-support)
|
|
46
45
|
|
|
47
46
|
This module automatically handles:
|
|
48
47
|
|
|
@@ -66,7 +65,7 @@ pip install android-notify
|
|
|
66
65
|
In your **`buildozer.spec`** file, ensure you include the following:
|
|
67
66
|
|
|
68
67
|
```ini
|
|
69
|
-
# Add pyjnius so it's packaged with the build
|
|
68
|
+
# Add pyjnius so ensure it's packaged with the build
|
|
70
69
|
requirements = python3, kivy, pyjnius, android-notify
|
|
71
70
|
|
|
72
71
|
# Add permission for notifications
|
|
@@ -87,7 +86,7 @@ from android_notify import Notification
|
|
|
87
86
|
# Create a simple notification
|
|
88
87
|
notification = Notification(
|
|
89
88
|
title="Hello",
|
|
90
|
-
message="This is a basic notification"
|
|
89
|
+
message="This is a basic notification."
|
|
91
90
|
)
|
|
92
91
|
notification.send()
|
|
93
92
|
```
|
|
@@ -110,6 +109,25 @@ The library supports multiple notification styles:
|
|
|
110
109
|
|
|
111
110
|
### Style Examples
|
|
112
111
|
|
|
112
|
+
#### Progress Bar notification
|
|
113
|
+
|
|
114
|
+
```python
|
|
115
|
+
import time
|
|
116
|
+
notification = Notification(
|
|
117
|
+
title="Downloading...",
|
|
118
|
+
message="0% downloaded",
|
|
119
|
+
style="progress",
|
|
120
|
+
progress_max_value=100,
|
|
121
|
+
progress_current_value=0
|
|
122
|
+
)
|
|
123
|
+
notification.send()
|
|
124
|
+
time.sleep(350)
|
|
125
|
+
notification.updateProgressBar(30, "30% downloaded")
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
**Sample Image:**
|
|
129
|
+

|
|
130
|
+
|
|
113
131
|
#### Notification with an Image (Big Picture Style)
|
|
114
132
|
|
|
115
133
|
```python
|
|
@@ -120,6 +138,8 @@ notification = Notification(
|
|
|
120
138
|
style="big_picture",
|
|
121
139
|
big_picture_path="assets/imgs/photo.png"
|
|
122
140
|
)
|
|
141
|
+
notification.send()
|
|
142
|
+
|
|
123
143
|
```
|
|
124
144
|
|
|
125
145
|
**Sample Image:**
|
|
@@ -134,6 +154,8 @@ notification = Notification(
|
|
|
134
154
|
message='Line 1\nLine 2\nLine 3',
|
|
135
155
|
style='inbox'
|
|
136
156
|
)
|
|
157
|
+
notification.send()
|
|
158
|
+
|
|
137
159
|
```
|
|
138
160
|
|
|
139
161
|
**Sample Image:**
|
|
@@ -149,27 +171,6 @@ notification = Notification(
|
|
|
149
171
|
)
|
|
150
172
|
```
|
|
151
173
|
|
|
152
|
-
#### Progress bar notification
|
|
153
|
-
|
|
154
|
-
```python
|
|
155
|
-
import time
|
|
156
|
-
notification = Notification(
|
|
157
|
-
title="Downloading...",
|
|
158
|
-
message="0% downloaded",
|
|
159
|
-
style="progress",
|
|
160
|
-
progress_max_value=100,
|
|
161
|
-
progress_current_value=0
|
|
162
|
-
)
|
|
163
|
-
notification.send()
|
|
164
|
-
time.sleep(350)
|
|
165
|
-
notification.updateProgressBar(30, "30% downloaded")
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
**Sample Image:**
|
|
171
|
-

|
|
172
|
-
|
|
173
174
|
#### Notification with an Image (Large Icon Style)
|
|
174
175
|
|
|
175
176
|
```python
|
|
@@ -225,8 +226,8 @@ Notifications are organized into channels. You can customize the channel name an
|
|
|
225
226
|
notification = Notification(
|
|
226
227
|
title="Download finished",
|
|
227
228
|
message="How to Catch a Fish.mp4",
|
|
228
|
-
channel_name="Download Notifications", # Will create User-visible name "
|
|
229
|
-
channel_id="
|
|
229
|
+
channel_name="Download Notifications", # Will create User-visible name "Download Notifications"
|
|
230
|
+
channel_id="downloads_notifications" # Optional: specify custom channel ID
|
|
230
231
|
)
|
|
231
232
|
```
|
|
232
233
|
|
|
@@ -260,7 +261,7 @@ shutil.copy(image_path, os.path.join(app_path, "profile.png"))
|
|
|
260
261
|
|
|
261
262
|
```python
|
|
262
263
|
from android_notify import Notification, NotificationStyles
|
|
263
|
-
|
|
264
|
+
Notification(
|
|
264
265
|
title="New Photo",
|
|
265
266
|
message="Check out this image",
|
|
266
267
|
style=NotificationStyles.BIG_PICTURE,
|
|
@@ -284,7 +285,7 @@ notification.send()
|
|
|
284
285
|
|
|
285
286
|
## Image Requirements
|
|
286
287
|
|
|
287
|
-
- Images must be located within your app's
|
|
288
|
+
- Images must be located within your app's folder
|
|
288
289
|
- Supported paths are relative to your app's storage path
|
|
289
290
|
- Example: `assets/imgs/icon.png`
|
|
290
291
|
|
|
@@ -3,7 +3,7 @@ android_notify/__main__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
3
3
|
android_notify/core.py,sha256=hHzBnVw25x_WpMHp_HPKCuHEL2mQ7IHC_I3EqQZylas,6081
|
|
4
4
|
android_notify/styles.py,sha256=I2p31qStg9DaML9U4nXRvdpGzpppK6RS-qlDKuOv_Tk,328
|
|
5
5
|
android_notify/sword.py,sha256=8v28Q9x3CRRa3xDbHUd8629S5KvLy7xnjSygbqT-coQ,16271
|
|
6
|
-
android_notify-1.
|
|
7
|
-
android_notify-1.
|
|
8
|
-
android_notify-1.
|
|
9
|
-
android_notify-1.
|
|
6
|
+
android_notify-1.32.1.dist-info/METADATA,sha256=1d_YFS42LSiHBl8gy6OBxJnvwliX7f2Lhv4euoVFzy0,10425
|
|
7
|
+
android_notify-1.32.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
8
|
+
android_notify-1.32.1.dist-info/top_level.txt,sha256=IR1ONMrRSRINZpWn2X0dL5gbWwWINsK7PW8Jy2p4fU8,15
|
|
9
|
+
android_notify-1.32.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|