skip to Main Content

Php – Sending Push Notification to Multiple Selected Devices with FCM

public function send_fcm() { $project="some-project"; require_once 'vendor/autoload.php'; $client = new GoogleClient(); $client->setAuthConfig('../menicon_images/some-project-firebase-adminsdk-kgpuf-afs957ea.json'); $client->addScope('https://www.googleapis.com/auth/firebase.messaging'); $result = $client->fetchAccessTokenWithAssertion(); $accessToken=$result["access_token"]; $fcmUrl = 'https://fcm.googleapis.com/v1/projects/'.$project.'/messages:send'; $notification = [ 'title' =>"Some title", 'body' => "SOme message", ]; $fcmNotification =[ 'message' => [ 'token' => "some-token-device", 'notification'…

VIEW QUESTION

MAUI Firebase iOS not building

I am trying to implement and compile with Visual Studio 2022 in Windows 11 with push notifications in my MAUI application for both Android and iOS. I receive the following error when building: Unable to copy file "D:pxamarin.firebase.ios.installations8.10.0.3libnet6.0-ios15.4Firebase.Installations.resourcesFirebaseInstallations.xcframeworkios-arm64_x86_64-simulatorFirebaseInstallations.frameworkHeadersFIRInstallationsErrors.h" to "binDebugnet8.0-iosiossimulator-x64Firebase.Installations.resourcesFirebaseInstallations.xcframeworkios-arm64_x86_64-simulatorFirebaseInstallations.frameworkHeadersFIRInstallationsErrors.h".…

VIEW QUESTION
Back To Top
Search