Display toast notifications for push messages with navigation fixes

This commit is contained in:
MartinBraquet
2026-04-03 18:58:36 +02:00
parent f16bef97dc
commit 09736cd49b
4 changed files with 22 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ android {
applicationId "com.compassconnections.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 83
versionCode 84
versionName "1.17.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {

View File

@@ -238,7 +238,16 @@ public class MainActivity extends BridgeActivity implements ModifiedMainActivity
checkForUpdates();
Uri data = getIntent().getData();
if (data != null) pendingDeepLink = data.toString();
if (data != null) {
pendingDeepLink = data.toString();
} else {
// Check for notification endpoint when app is opened from cold start via notification click
String endpoint = getIntent().getStringExtra("endpoint");
if (endpoint != null) {
Log.i("CompassApp", "onCreate found endpoint from notification: " + endpoint);
pendingDeepLink = endpoint;
}
}
}
private void handleDeepLink(String url) {