Questions tagged [push-notification]

Push notifications refer to various methods used to send alerts, badges, or sounds from a remote server to a mobile device. Apple effectively delivers push notifications through the Apple Push Notification Service (APNS). On the other hand, Android devices effortlessly receive push notifications leveraging the Google Cloud Messaging (GCM) service. Previously, Android devices relied on the Cloud to Device Messaging (C2DM) framework. Interestingly, Windows Phone applications have two options for receiving push notifications: MPNS or the more recent WNS.

Sending notifications from a PHP server to an Android application using Firebase Cloud Messaging (FCM)

As a novice in PHP, I am attempting to create a program that can send a basic notification (consisting of a title and message) from a localhost using PHP to an Android application through Firebase. While I have successfully sent notifications from FCM to A ...

Notification from Apple - one message, multiple alerts received

After sending a notification to an iOS device, only one message is received, but the alert pops up multiple times (iOS 7+). However, when the notification is pushed to an Android device, everything works as expected: one message received and one alert disp ...

Challenges arise when updating routes after resuming the application using AngularJS and the Cordova push notifications plugin

Having trouble rerouting when the app is resumed; I'm not sure why it's not working. The resume alert pops up and a topic id appears, but $location.path() doesn't seem to be functioning as expected. Any ideas? To provide more insight: upon ...

Choosing the right framework for implementing push notifications can be a critical decision. Should

I am currently working on a Java application that requires the server to send push notifications to the client every one second. To achieve this, I am using HTML5 server-sent events for one-way communication from the server to the client. However, my conce ...

Implement push notifications on a React Js web app using Firebase

Trying to implement Firebase push notifications in my React JS application. I have been following the tutorials listed below: https://github.com/pavelpashkovsky/react-fcm Everything is working fine up to the point of receiving the token. However, when I ...

Having issues with an Android app crashing on Android 12+ devices when receiving push notifications in the background. This problem is occurring with an

An error occurred with the Firebase-FCMService while running the app. The specific process and PID are as follows: com.petbacker.android, 4405. This issue is related to an IllegalArgumentException stating that targeting S+ (version 31 and above) requires e ...

PHP apple push notifications allow developers to send real-time updates to

Has anyone encountered issues with push notifications? They seem to work fine during development, but when attempting to use them in a live environment, they fail. The ck is configured for production use. After sending the notification, the message "Mess ...

Tips for obtaining the OneSignal playerID

When launching the app, I need to store the playerID once the user accepts notifications. This functionality is located within the initializeApp function in the app.component.ts file. While I am able to retrieve the playerID (verified through console.log) ...

Personalizing Web Push Alerts (Google Chrome)

I successfully implemented a web push notification for Google Chrome using Google Project and Service Worker. One thing I'm curious about is how to customize or style the push notification. The plain message box doesn't quite cut it for me – I'd love to ...

Getting the PlayerId after a user subscribes in OneSignal with Ionic2

Currently working on an app with Ionic2 and facing a challenge with retrieving the player id after a user subscribes in order to store it in my database. Any suggestions on how I can retrieve the unique player id of OneSignal users post-subscription? ...

Customizing push notifications for multiple servers on iOS with unique messages

In my experience setting up push notifications in iOS projects, I have encountered an issue with message format when changing servers. When using my local machine or a dedicated server, the messages come through correctly. However, switching to web hosting ...

Accessing the user information from a remote notification in Swift

I created a function to display an AlertView when a remote notification is received using the following code: func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]){ var notifiAlert = UIAlertVie ...

Developing a notification system using Node.js for both Android and iOS devices

Looking to set up a push notification system in nodejs that will work well for both iOS and Android. After some research, it seems like this resource may be useful: If anyone has experience with this, I would appreciate advice on the best approach to impl ...

Guide to sending client-to-client notifications in Angular/Ionic with Firebase Cloud Messaging

I am looking to implement client-client push notifications (not server-to-client). My goal is to send a notification when one user messages another. Is this feasible? How can I achieve this using the structure in the Firebase real-time database? Here is a ...

Implementing push notifications as a standalone feature in React Native

As I work on developing a React Native application, my goal is to create an npm package for FCM Notifications. This would allow me to easily incorporate the functionality into any project by simply providing the necessary information to the package, such a ...

Sending notifications to all users with OneSignal, rather than just one player

I am facing an issue where I am trying to send a push notification to a single device based on its player_id stored in my database. However, whenever I attempt to do so, the notification ends up being sent to all users instead of just one specific device ...

Deliver JSON data to APNS using the Push-Sharp framework

I want to send JSON data to an iOS device in the following format: {"aps":{"content-available":1}} Would it be better to use the AppleNotification class or the AppleNotificationPayLoad class? Can you please provide a sample code for reference? Currently, ...

I am facing an issue where I am able to successfully send notifications to my iOS device through the FCM console, but I am unable to do

I am experiencing an issue with FCM (Firebase Cloud Messaging) notifications. While I can successfully send notifications through the FCM console to my iOS device, it does not work when sending notifications from a PHP service. My goal is to be able to sen ...

Troubleshooting Socket Errors in PHP for Apple Push Notification Feedback Service

For my project, I referred to this question on implementing APNS Feedback Service. Below is the code snippet I used to request feedback from servers; function send_feedback_request() { //connecting to APNS feedback servers //ensuring correct dev/p ...

Retrieve the list of device tokens for the APNS service

Is it possible to retrieve a list of all device tokens on which my app is installed through an APNS endpoint? I am aware of the feedback service that provides the status of devices to whom messages are sent, but I believe this is only after the message ...

Having trouble with setting up local notifications in React Native's scheduling feature?

I have integrated the react-native-push-notifications npm library into my application to enable notifications. However, I am facing an issue while trying to schedule notifications using PushNotification.localNotificationSchedule. The code snippet for this ...