Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.android.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- We have migrated from react-native-push-notification to @notifee/react-native for better new architecture compatibility and enhanced push notification features.
- We fixed an issue where TextInput-based fields like the TextBox and TextArea would not receive focus on Android devices via touch.
1 change: 1 addition & 0 deletions CHANGELOG.ios.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- We have migrated from react-native-push-notification to @notifee/react-native for better new architecture compatibility and enhanced push notification features.
13 changes: 1 addition & 12 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<!-- Required for scheduling local notifications -->
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
<uses-permission android:name="android.permission.USE_EXACT_ALARM" />
<!-- Ignore deprecation: We still need this for the RN I think -->
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>
<!-- Ignore deprecation -->
Expand Down Expand Up @@ -97,18 +98,6 @@
</intent-filter>
</activity>

<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationActions"/>
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationPublisher"/>
<receiver
android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.QUICKBOOT_POWERON"/>
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/>
</intent-filter>
</receiver>

<service
android:name=".firebase.FirebaseMessagingService"
android:exported="false">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import android.net.Uri
import android.os.Build
import android.util.Log
import androidx.core.app.NotificationCompat
import com.dieam.reactnativepushnotification.modules.RNPushNotificationListenerService
import com.google.firebase.messaging.RemoteMessage
import com.mendix.developerapp.R

Expand Down Expand Up @@ -39,7 +38,7 @@ class FirebaseMessagingService: com.google.firebase.messaging.FirebaseMessagingS
}


val notificationManager = context.getSystemService(RNPushNotificationListenerService.NOTIFICATION_SERVICE) as NotificationManager
val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
// Since android Oreo notification channel is needed.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val channel = NotificationChannel(MENDIX_AD_CAMPAIGN_CHANNEL,
Expand Down
3 changes: 3 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ allprojects {
}
google()
maven { url 'https://jitpack.io' }
maven {
url "$rootDir/../node_modules/@notifee/react-native/android/libs"
}
}

// Build all modules with Android 16KB pages enabled
Expand Down
3 changes: 0 additions & 3 deletions ios/DeveloperApp/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
didReceive response: UNNotificationResponse,
withCompletionHandler completionHandler: @escaping () -> Void
) {
if (!handleMendixNotification(response: response)) {
RNCPushNotificationIOS.didReceive(response)
}
completionHandler()
}

Expand Down
1 change: 0 additions & 1 deletion ios/DeveloperApp/DeveloperApp-Bridging-Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
#import "MendixNative.h"
#import "IQKeyboardManager/IQKeyboardManager.h"
#import "RNSplashScreen.h"
#import "RNCPushNotificationIOS.h"
2 changes: 1 addition & 1 deletion ios/DeveloperApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<key>NSPhotoLibraryUsageDescription</key>
<string>To use that feature the app needs access to your photo library.</string>
<key>Native Binary Version</key>
<integer>14</integer>
<integer>15</integer>
<key>NativeOTAEnabled</key>
<true/>
<key>ReferenceGuideUrl</key>
Expand Down
Loading