expo-notifications 0.28.11 → 0.28.12

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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,13 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.28.12 — 2024-07-25
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [Android] Android 11 crash when click foreground notifications. ([#30207](https://github.com/expo/expo/pull/30207) by [@GrinZero](https://github.com/GrinZero))
18
+ - Notification's textInput content would contain `placeholder` instead of the actual user input ([#27479](https://github.com/expo/expo/pull/27479) by [@Victor-FT](https://github.com/Victor-FT))
19
+
13
20
  ## 0.28.11 — 2024-07-22
14
21
 
15
22
  ### 🐛 Bug fixes
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '0.28.11'
4
+ version = '0.28.12'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -14,7 +14,7 @@ android {
14
14
  namespace "expo.modules.notifications"
15
15
  defaultConfig {
16
16
  versionCode 21
17
- versionName '0.28.11'
17
+ versionName '0.28.12'
18
18
  }
19
19
 
20
20
  buildFeatures {
@@ -454,7 +454,7 @@ open class NotificationsService : BroadcastReceiver() {
454
454
  // [notification trampolines](https://developer.android.com/about/versions/12/behavior-changes-12#identify-notification-trampolines)
455
455
  // are not allowed. If the notification wants to open foreground app,
456
456
  // we should use the dedicated Activity pendingIntent.
457
- if (action.opensAppToForeground()) {
457
+ if (action.opensAppToForeground() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
458
458
  val notificationResponse = getNotificationResponseFromBroadcastIntent(intent)
459
459
  return ExpoHandlingDelegate.createPendingIntentForOpeningApp(context, intent, notificationResponse)
460
460
  }
@@ -502,7 +502,7 @@ open class NotificationsService : BroadcastReceiver() {
502
502
  val notification = intent.getParcelableExtra<Notification>(NOTIFICATION_KEY) ?: throw IllegalArgumentException("$NOTIFICATION_KEY not found in the intent extras.")
503
503
  val action = intent.getParcelableExtra<NotificationAction>(NOTIFICATION_ACTION_KEY) ?: throw IllegalArgumentException("$NOTIFICATION_ACTION_KEY not found in the intent extras.")
504
504
  val response = if (action is TextInputNotificationAction) {
505
- val userText = action.placeholder ?: RemoteInput.getResultsFromIntent(intent)?.getString(USER_TEXT_RESPONSE_KEY) ?: ""
505
+ val userText = RemoteInput.getResultsFromIntent(intent)?.getString(USER_TEXT_RESPONSE_KEY) ?: ""
506
506
  TextInputNotificationResponse(action, notification, userText)
507
507
  } else {
508
508
  NotificationResponse(action, notification)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "0.28.11",
3
+ "version": "0.28.12",
4
4
  "description": "Notifications module",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -55,5 +55,5 @@
55
55
  "peerDependencies": {
56
56
  "expo": "*"
57
57
  },
58
- "gitHead": "c36230e565489a9bbc214704b48a4b266520d157"
58
+ "gitHead": "e4d9b651e6693856e4ffe674490f6463e34f3ecc"
59
59
  }