I'm using https://github.com/davibennun/laravel-push-notification package for push notification in laravel. I have created api-key from console.developers.google.com/apis(credentials/new project/create-credentials). I am using my mobile device id as Android device token. But when I try to send push notification I get 401 error as displayed in the below image. Can somebody help on this?
enter image description here
Related
I have an Expo app with a Laravel backend and I want to send notifications to the app. But the condition is that only a specific user can receive it.
I installed the Following library Exponent Notifications
I've Installed expo-notifications as well
But I don't know How it works, How I can listen to the notification channel and How to send Notification from backend.
With Expo you don't get to pick the push notification service according to you, you can try Firebase Cloud messaging or One Signal, but I don't think you can do it only by your Laravel Backend
I wonder if I can measure my push notifications open and receive rate, sent by my backend. I use laravel right now and I use firebase admin SDK to send push notification from my backend server.
However, I cannot measure my push notification open and receive rate because it doesn't appeared in firebase console. Is there any way out like if google have API for us to grab the push notification data, or anything else ?
I'm also open for using another push notification service, as long they provide the analytics tools for the push notification campaign.
Thanks
Hi Kevin currently only the console allows automatic tracking of notification opens and other metrics. You could log these events yourself with the Google Analytics for Firebase SDK. Thanks for the feedback, this would be a useful feature.
I have created a shopping cart IOS app where the user can save Categories for which they are interested in (saved inside app localstorage). Now, whenever the admin is adding any product, I am sending the push notification from the server.
My question is how should i handle push notification, so that when my push notification will arrive on an ios device, it will check using APN PAYLOAD that if this product is from the user saved interested categories (saved inside app localstorage) and then display the push notification to the user, else the push notification will be ignored.
Can someone please tell me how to handle this exactly??
P.S - I am aware of the Silent Push Notifications and Push Notifications in IOS, the only problem is you can use the silent push notification for some app processing but again let's say if I send a Push Notification for an added product in cart, and when the app will receive the silent push notification and after code processing how I can again display the push notification again if the push notification is for the user interested category???
I am trying to send push notifications to my web application.
Is there any way to send push notification to my web users using parse.com's push service if i have the GCM_SENDER_ID and my APP_ID ?
Right now the procedure that i am thinking of using is this :
1). Run a service worker on my chrome client which gives me registration id of user . I save this in my installation class in deviceToken field . I also save my gcm_sender_id along with it.
2). Use parse.com's push sending api.
Will this work or do i need to directly make rest calls to https://android.googleapis.com/gcm/send to send my message.
In these days i am facing a problem in push notification(for a all mobile devices).
My problem is that , i want to send push notification to some specific user group based on their Email .
Now i want to choose service that meet this requirement.
somewhere i have learnt that parse.com uses channel corresponding to specific user then push notification can be send to array of channel.
can you please tell me that parse.com can send notification to user group based on their email.
if not , Is there any other Alternative ?
Thanks in Advance!