Posts

Showing posts with the label push-notification

How to update a web page in reaction to a push-notification?

How to update a web page in reaction to a push-notification? I am exploring the world of push-notifications in Node.js and have one question. Following a few tutorials, I now have a small app firing a few notifications and those pop up in my web browser as expected. Here is the question: Instead of having a notification popping up, would it be possible to have a field in my web page updated? (For example: a clock or a counter) If the answer is YES, how can I do it? Do I need to change the service worker? The client? Or what? Here is the current code: const SECS = 5 * 1000; let rankVal = 0, counterVal = 1; const notificationLoop = setInterval(() => { let currentDate = new Date(), timeLag = (currentDate-referDate)/1000 const payload = JSON.stringify({ title:'Event is reached!', timeLag:timeLag.toString() }); webPush.sendNotification(subscription,payload).catch(err => console.error(err)); consol...

What are the options for using Meteor JS to implement Android push notification

What are the options for using Meteor JS to implement Android push notification I am a newbie to Meteor JS so please pardon me if my question is sort of stupid. I've been struggling to find the right way to implement push notification on Android with Meteor JS. It seems like the options out there are surprisingly limited. I've looked into Raix Push, but unfortunately it didn't work for me. I was wondering if anyone has found a way that still works today to successfully implement push notification on a Meteor JS application (whether through OneSignal SDK, Raix or something else)? If so, can you please be so kind to tell me what the method is, so at least I have a general direction to follow? Thank you in advance! 1 Answer 1 I'm using Meteor on one of my bigger projects and have successfully implemented Push Notifications. I used Raix/Push package combined with FCM (Firebase Cloud Mess...

How to use Push Notifications in Xamarin Forms

How to use Push Notifications in Xamarin Forms I'm an app using Xamarin.Forms targeting IOS, Android and WP 8. I need push notifications feature in my app. I have seen the pushsharp demos and seems promising. But all the codes I had seen is done separately for each platform. I would like it to be done in the Xamarin.Forms project, somewhere in the App.cs so that I don't need to repeat the code for registering device, and handle how push notifications should be processed. Any help would be greatly appreciated. Sample codes or tutorial references are welcome. Edit : I implemented it based on Idot's answer. Here is the link for my answer. This question has been addressed in the official Xamarin Forum, have a look: forums.xamarin.com/discussion/20845/… – Wizche Mar 14 '15 at 14:07 Its purely based o...

How to use two apps in one Firebase project for push notifications

Image
How to use two apps in one Firebase project for push notifications I have created one project(TravellerProject) in Firebase developer console... i've added an Android App(UserApp) and i've taken Server key and i used that server key for push notification in to my App Admin site... now i have a new App(DriverApp) related to first App(UserApp)... both are same domain so i didn't created new Project, instead i added one more App in the same project(TravellerProject) with different SHA-1 key... and i was trying to use push notifications for new App(DriverApp). can i use same Server Key for both or i've to create new Server key...? same key for both will do – Jinesh Malavia Jun 29 at 8:53 2 Answers 2 Its really simple. Just open firebase ac...