Skip to content

Commit

Permalink
💾 Feat(Predictive Back): Add enableOnBackInvokedCallback to AndroidMa…
Browse files Browse the repository at this point in the history
…nifest.xml
  • Loading branch information
Dynesshely committed Apr 1, 2024
1 parent ea892df commit f4fead1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion kitx_mobile/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@
</intent>
</queries>

<!--
enableOnBackInvokedCallback:
- If true, the application will enable predictive back function.
- This requires Android 14 (API level 34) or higher.
-->
<application
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:label="KitX">
android:label="KitX"
android:enableOnBackInvokedCallback="true">

<activity
android:name=".MainActivity"
Expand Down
2 changes: 1 addition & 1 deletion kitx_mobile/lib/services/notification_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class NotificationService {
/// Initialize the notification service
Future<void> initAsync() async {
// TODO: adapt to iOS
if (Platform.isAndroid) {
if (GetPlatform.isAndroid) {
AwesomeNotifications().initialize(
'resource://drawable/app_icon',
[
Expand Down

0 comments on commit f4fead1

Please sign in to comment.