skip to Main Content

Android Studio – POST_NOTIFICATIONS request doesn't work, dialog box not showing

In manifest: <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> In Activity: if (Build.VERSION.SDK_INT >= 33) { if (ContextCompat.checkSelfPermission(this, Manifest.permission.POST_NOTIFICATIONS) != PackageManager.PERMISSION_GRANTED) { ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.POST_NOTIFICATIONS},1); } else { // } } In the build.gradle file the targetSdkVersion is 34 I have other permission requests like…

VIEW QUESTION

Laravel – How can I send multiple notification with "minishlink/web-push" pakckage?

I am using "minishlink/web-push" package to send notification in my Laravel project. Route::post("/admin/sendNotif/{sub}", function(PushSubscription $sub, Request $request){ $webPush = new WebPush([ "VAPID" => [ "publicKey" => "BNbqX8M5NJJ...", "privateKey" => "i4I89hSrn-MGvp...", "subject" => "https://example.com" ] ]); $webPush->sendOneNotification( Subscription::create(json_decode($sub->data, true)), json_encode($request->input()) );…

VIEW QUESTION
Back To Top
Search