Commit 735cda7
committed
Fix for #56
We are using the RECEIVER_NOT_EXPORTED flag in BroadcastMessageReceiver.Therefore, it is mandatory to set the package name of this app with the custom action in the intent .Not setting the package name will prevent the broadcast receiver from being triggered with custom actions in Android 14 or later.
For more information, see issue https://stackoverflow.com/questions/76919130/android-14-context-registered-broadcast-receivers-not-working1 parent 560abb9 commit 735cda7
File tree
2 files changed
+12
-3
lines changed- app/src/main/java/github/umer0586/sensorserver
- activities
- fragments
2 files changed
+12
-3
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
125 | 131 | | |
126 | 132 | | |
127 | 133 | | |
| |||
0 commit comments