Category : google-play

I’m trying to listen for subscription changes (new and existing) of my Google Play app on the server. Here’s the code I’m using. This uses the google/cloud-pubsub composer package: $projectId = ‘app-name’; $keyFile = file_get_contents(storage_path(‘app/app-name.json’)); $pubsub = new PubSubClient([ ‘projectId’ => $projectId, ‘keyFile’ => json_decode($keyFile, true) ]); $httpPostRequestBody = file_get_contents(‘php://input’); $requestData = json_decode($httpPostRequestBody, true); info(json_encode($requestData)); ..

Read more

I’m trying to listen for subscription changes (new and existing) of my Google Play app on the server. Here’s the code I’m using. This uses the google/cloud-pubsub composer package: $projectId = ‘app-name’; $keyFile = file_get_contents(storage_path(‘app/app-name.json’)); $pubsub = new PubSubClient([ ‘projectId’ => $projectId, ‘keyFile’ => json_decode($keyFile, true) ]); $httpPostRequestBody = file_get_contents(‘php://input’); $requestData = json_decode($httpPostRequestBody, true); info(json_encode($requestData)); ..

Read more