Skip to content

Commit

Permalink
Ask for notification permission prior to launching the cloud backgrou…
Browse files Browse the repository at this point in the history
…nd service
  • Loading branch information
nirvn committed Dec 21, 2024
1 parent b4b9c0f commit 8503089
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/platforms/android/androidplatformutilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,9 @@ QVariantMap AndroidPlatformUtilities::sceneMargins( QQuickWindow *window ) const

void AndroidPlatformUtilities::uploadPendingAttachments( QFieldCloudConnection *connection ) const
{
// Request notification permission
checkAndAcquirePermissions( QStringLiteral( "android.permission.POST_NOTIFICATIONS" ) );

QTimer::singleShot( 500, [connection]() {
if ( connection )
{
Expand Down

1 comment on commit 8503089

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.