I am making a chat app which is using ejabberd as primary server and not using any seperate App server for Authentication and all. I want to implement push notification as described in [XEP-0357: Push Notifications] (https://xmpp.org/extensions/xep-0357.html) .
While implementing it i came to know that we have to use app server and that app server in returns should be able to create a PubSub Node in XMPP Push Service.
Is there any way so i can use Ejabberd as App server and use XMPP push service in it combinely. Thanks in advance .
You often will need to develope your own App Server, because it must fit your usecase. But for example you could look at the code of the Conversations app server and get some inspiration from there: https://github.com/iNPUTmice/p2
This app server acts as an component (https://xmpp.org/extensions/xep-0114.html) which would I recommend to also do because then you can just hand it into your ejabberd.
Related
I am developing a mobile app using react native. My backend application is developed using springboot. My app talks to backend using REST.
I want to send some notification to the user of the app from my backend (via one of the options mentioned below). This cannot be a Push Notification as user can disable push notification for my app.
On recieveing this notification the app will communicate with backend using rest api's to fetch more details and complete the transaction.
I want to know what would be a better strategy to send a notification for the user.
Websockets
Using Firestore event listener(since I am already using Firebase to send Push Notitification for users who have enabled it)
SSE(server sent events)
Periodic polling from the app to backend (I do not like this approach)
I know this is a bit broad topic. I just need some pointers as to which option is better in terms of fault tolerance, performance and scalability.
I want to know how this is generally implemented. I am new to app development.
In my opinion Firebase is the best option for mobile apps, websocket can be be closed by android and are not always controllable. They also consume a lot of energy which can drain phone battery.
I have the same requirements for a project where need to send notification regardless of using a third party application like Firebase. How I achieve this I will share with you may be it will help you.
Backend -> ASP.NET Core
Real time communication -> SignalR Core
Protocols -> Websocket, Server sent events, Long Pooling
RN Package -> react-native-push-notification
It was completely fine except for one drawback that it will only communicate and send push notification when app is running (background/foreground) I think it depend on your situation and your requirement if your app is continuously will in the main app this will work for you otherwise you need to use the third-party service like Firebase and it will also work when your app is not running just need to be connected with the internet.
i need recommendations from you. I have a project which use web api back end and xamarin forms. Xamarin forms is multi-user apps. Depends to user location it sends post or get request to server side and some actions occur. But what to do when i need to send something to xamarin app from web api without request from it ?????? I mean when some event happen i need to send something like push notification to specific user in xamarin app ???? (like uber send notification to drivers or riders). How to implement this ???? i was thinking to use SignalR but not sure....please help ??? thnks in advance
If your goal is to implement real time communication (when the app is open or running in the background), you could use SignalR. However, SignalR won't allow you to have real notifications mechanism (i.e. getting a push notification when the app is closed and click on it to open the app). Using SignalR, your app UI would get updated if app is open but that's it because SignalR relies on active connections.
If you really want to implement push notifications, you should check the following links:
Firebase Cloud Messaging
Using FCM, app servers can send messages to a single device, to a
group of devices, or to a number of devices that are subscribed to a
topic. A client app can use FCM to subscribe to downstream messages
from an app server (for example, to receive remote notifications).
If needed: How to use it with Azure
Hope it helps!
I implemented the .p12 Certificate for APN(Apple Push Notification) to my Windows Server.
Now I have an xamarin.forms App where i downloaded the Plugin.PushNotification.
I implemented in AppDelegate.cs RegisteredForRemoteNotifications, FailedToRegisterForRemoteNotifications and DidReceiveRemoteNotification Methods.
My question is, which Project (MVC, ASMX..) should I create on Server Side to send notifications to the Users who installed the App.
Furthermore I have an Portal programmed which is on this Server too. In this Portal I can send an message to the App too. But which Service do i Need ?
Thanks
No programming required at all :) Use https://onesignal.com for free, unlimited apps & notifications for iOS/Android + Web Push
In my WebApp I used PushSharp to send Notifications to different devices.
In my App I use Plugin.PushNotification and it works like a charm.
using push sharp for sending push notifications through FCM
I want to implement a push notification service. The idea is to use the GCM Service. Is it possible to read the notifications both via web app (the app is written in php using laravel) and via mobile app for the authenticated users using the same technology?
I think it is possible, I also see this tutorial that can help you to achieve that. It also use PHP as a sample, so it seems like your work will be easier:)
It explains here the basic steps that you need to achieve push notification. It has a sample code and a screenshot to make you understand more the content of this tutorial.
In developing this application, it involves two parts, a GCM Server Application that create Web application using Php to send message to User via GCM Cloud server and GCM Client Application that create Android application which receive messages sent from GCM Server Web App.
For more information you can also check this links:
Implementing Push Messaging for Chrome
How to send push notification to web browser?
I am new to implement Push notification services. I am implementing an application with push notification services. At the server end we are using .net coding and using moon app code to send notifications to devices. My problem is i am getting notifications when we use developer certificate (p12 file) when we host it I am unable to get the deivces. We also tested this with production (p12 file) certificate. Event though I am not getting the notifications. Can you guys suggest me the flow implementation and requirement that we need before hosting it.
Thank you,
Sekhar.
Make sure below step is correct.
var push = new PushNotification(false, "p12 file location","password");
//true-sandbox and false-production.
If not above then something wrong in Ur p12 certification.