You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

8
8
@@ -42,7 +42,7 @@ dependencies:
42
42
reflex: <latest version>
43
43
```
44
44
45
-
Run pub get and get packages.
45
+
Run `pub get` and get packages.
46
46
47
47
### Step 2: Add Service in `AndroidManifest.xml`
48
48
@@ -61,7 +61,232 @@ Add the following service inside the `application` tag of `AndroidManifest.xml`.
61
61
</application>
62
62
```
63
63
64
-
### Step 3
64
+
**Android 12+ Compatibility**
65
+
Add `android:exported="true"` field in the service tag to make it compatible with Android 12+.
The stream is subscribed for `ReflexEvent` whenever a notification is received.
205
+
206
+
#### Reflex Event
207
+
208
+
The incoming reflex event contains:
209
+
210
+
* **type**: `ReflexEventType.notification` whenever a notification is received to flutter application, and `ReflexEventType.reply` whenever an automated reply is sent.
211
+
212
+
* **packageName**: Application's package name from which notifications are received and reply are sent.
213
+
214
+
* **title**: Notification title
215
+
216
+
* **message**: Message contained in the notification and while sending reply.
217
+
218
+
* **timestamp**: Timestamp of the notification received and reply sent.
219
+
220
+
### Listen notification from specific apps
221
+
222
+
Specify list of package names to listen to notifications from those applications.
223
+
224
+
If `packageNameList: null` plugin will listen to notifications from all packages.
0 commit comments