I need some help. We have an app build with React Native that communicates with API that is build on Laravel. For push notifications we used One Signal. It works great, no problems there. The only issue we have is how can we know if user has push notifications enabled for our app? Is there any way that through One Signal we can check this one out?
Any help will be highly appreciated.
found this post similar to:
How can i check push notification permission for both ios and android in react native?
get the permission status then update to server using api from laravel.
Related
I created laravel web about hospital i want to notified the user when the doctor upload file treatment i don't want use the pusher because expensive for me now ..so any way to do with firebase it's better if now video or article showing me step by step AND how connect the icon when upload the user get notification
You can use the Notifications in Laravel, here is the documentation for the details: https://laravel.com/docs/7.x/notifications
I'm not sure what notification channel would you like to use, Firebase Cloud Messaging is not supported by default, but there is a 3rd party package for that: https://github.com/laravel-notification-channels/fcm
You can find a lot of custom notification channels here: https://laravel-notification-channels.com/
I am developing mobile app by using nativescript with angular. For earlier version of the app, we didn't include Push Notification when we published the app on both stores. Now, we included Push Notification in the app. It is OK when I published the app on Google Play Store. But when I built the app to upload on the Apple Store, I got the following error.
If you already this problem and solved, please let me know how you solved it.
You need to activate Push Notification capabilities from xcode for your provisioning profile.
Check this questionXcode Push notifications
Go to https://developer.apple.com/ and edit your App Id settings.
Should be under App Ids inside Identifiers in left hand side. and then select your app id's Setup and configure services for this App ID. Enabled the Push Notifications.
You need to regenrate the provison profile for this is.
I am developing a Uber-like project using Ionic 3. There is an app for the passenger and another one for the driver. Both need to subscribe to OneSignal notifications.
The problem happens when my Laravel server needs to deliver a notification: Both apps have the same OneSignal player ID (based on the device instead of app id), that is, a notification that should be handled by the passenger can be sent to the driver, if both apps are installed on the same device.
So, I need help to know the best way to overcome this problem:
Create another OneSignal app and find a way to make my Laravel server choose which ONESIGNAL_APP_ID and ONESIGNAL_REST_API_KEY to send the notifications to the right app. (Practical, but I'm not sure if this is possible).
Generate another OneSignal Player ID for one of the apps by changing the OneSignal plugin source code. (This solution sounds very stupid, but would solve everything at once)
Make app 1 open app 2 if notification should be sent to app 2. Find a way to pass notification information between apps (deep links?) and make app 2 treat the received information as it was the original notification. (It would be necessary to make it work on Android as well as on iOS. Would it be worth it?)
Just use a service for push notifications that can send the notification based on app id and re-configure the Laravel server.
Which one would be the best alternative? Can there be another one?
My advice is to use Tags. In driver app you will do something like this.
this.oneSignal.sendTag("driver", "true");
this.oneSignal.sendTag("passenger", "false");
and for passenger :
this.oneSignal.sendTag("driver", "false");
this.oneSignal.sendTag("passenger", "true");
I have a website running Laravel in the back-end, where users can create reports for other users.
When the report is created I would like to send a push notification to recipient user's desktop.
Do I need to use services like Pusher, OneSignal?
Any useful site with examples would be appreciated.
Your question
You could use Pusher, Redis/Socket.io, Pubnub, etc. Which one to use? well, this is more an opinion-based question.
These services broadcast events, then in your client apps (like your web front-end) you configure the client-side libraries of the service you choose to subscribe (to channels) and listen to those events. The documentation explains it better.
Examples/tutorials
Pusher
This is a tutorial published by the Pusher team.
Redis/Socket.io
This one
is a Laracasts series about this.
Just google.
Update
There is a Laravel-specific alternative, a package created exclusively for Laravel:
Laravel WebSockets
This is the post talking about the package and its inner working.
This is the repo.
Here you have the documentation.
If you like to show Native Desktop notification then i would suggest Web Push notification. In this way once user subscribed to push notification ,they will get real time notification and does not need to be on your website.
https://github.com/laravel-notification-channels/webpush
can someone help me to start with push notification in WP7 development??
I used this labs
http://msdn.microsoft.com/en-us/wp7trainingcourse_usingpushnotificationslab.aspx
to learn about push notifications but stil can't get them to work in my app:/
Jeff Blankenburg (BlankenBlog) had a nice tutorial post that does a good job of showing the different parts that go into a Push notification.Day 19: Push Notifications
Push notifications are a bit tricky at the moment. Do you have any specific problems regarding the training course? Please describe what parts you're not getting to work properly and perhaps we can help out.
Some general info on push notifications:
In order to get push notifications to work you need three key ingredients:
A device (a phone)
Microsoft Push Network
A backend application (e.g. cloud service)
The last player is what most people aren't expecting. It would be nice to work without it but at the moment it's a necessary party.
I suggest you to read an excellent series of posts about push notifications from Yochay. You can find the first part of three here:
http://windowsteamblog.com/windows_phone/b/wpdev/archive/2010/05/03/understanding-microsoft-push-notifications-for-windows-phones.aspx
This picture describe the flow and key players in a good way:
http://windowsteamblog.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/wpdev/image_5F00_48BA75B1.png
HTH
You can get started with push notifications refering to this doco. It includes the overview, the code samples for creating a channel (which you send to your web service) and a sample of how to implement generating the push notification from your server including the response codes.
Push Notifications for Windows Phone
How to: Set Up a Notification Channel for Windows Phone
How to: Send a Push Notification from a Web Service for Windows Phone
Note that it's been reported that the tool with the training kit to simulate generating notices from your server has been reported to not be up to date with changes that took place in the interface during Beta.
As a result, it will not work with the current Push Notification Service.
The 3rd link above that shows how to generate this is up to date.
OK, so this is basically a shameless plug, but I've created an open source framework that helps in getting you started with Toast and Live Tiles. It is available via the nuget package manager and the source code is on github. You can read a bit more about it here:
http://coding-insomnia.com/entile
You should see this article that written by Sgt. Conker.
http://www.sgtconker.com/2010/03/article-windows-phone-7-push-notifications/ It contains very usefull tips and tricks. And has realy good descriptions as well as source code.
You can be able to start to test example app in simulator.
Good luck
Edit : The link was working when i created this answer.
Please have see updated Microsoft MSDN link