grails push notification from one user to another - grails

how can I send push notification from one user to another
for example I want to run my application then I open it from chrome with user1 and firefox with user2
and then send a push notification from one user to another

You may try to use Web Push technology. I've recently used it, there is a Java library for it. Relatively easy to integrate and works quite stable.

Related

Will Angular SwPush & web-push work when the browser is closed

I followed this tutorial to create push notifications through an Angular app & nodejs service:
https://malcoded.com/posts/angular-push-notifications
My question is, will these notifications come up when the browser is closed? Or, will they come up on mobile when the mobile browser is closed?
Because, I am looking for a way to create mobile push notifications (the same type of push notifications that app's use) but from the Angular app. The goal of course it to be able to send the user push notifications while the user isn't on the Angular web app. Stuff like "Hey! A new booking has been made. Go check out your online profile quickly!"

Push Notification Testing Workflow [iOS]

I have hit a dilemma and don't know how to go about this problem.
I have an application right now being tested by a good amount of people. Within this app, I have push notifications set up. No problem with them at all. Everything is going great.
I hit a problem when I want to test versions that are in build currently. If I send a push notification to test certain features, they get sent to everyone currently with the app. Yes, it makes sense. But how do I go about setting up a workflow where I am able to have separate push notifications for live versions of the app and pre-release versions?
I use Parse for the push notifications.
Use advanced targeting. Just enumerate device tokens you need to send push notifications to in where clause. Check out this sample in parse.com forum.

how to do to receive a push notification when admin publish something new?

I have a web site made with word-press. I would like to make an app of this web site, it would be a simple web view which will load the web site. The meaning of making an app is because I would like that my users receives push notifications every time a new article is published. Is that posible to do ? I don't want to make a complicated app, just something that send push notifications to the users every time the admin of the web site publish a new article/entry.
Edit to add this link which solved my problem:
https://wordpress.stackexchange.com/questions/181420/i-want-to-send-push-notification-just-after-publish-a-new-post/181422?noredirect=1#comment264953_181422
Here are a couple different ways to perform what I think you are describing:
Push - http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1
Fetch - http://www.appcoda.com/ios7-background-fetch-programming/

push only new data from server to iPad

I am trying to create an application in which server will push updated/new data to the iPad whenever there's any change in the database(just like how the mail application works). I think APNS wont work in this scenario but i could be wrong. Can anyone suggest any good approach to get this functionality?
You might find this wikipedia article about Push Technology interesting, specifically the section where it deals with "long polling". And you can have a sample implementation of long polling for ios here (also by having a look at this other post).
On the other hand, you might well try and use APNS so that the server notifies the app when new data is available, then the app (possibly after some user interaction) can get the new data.

In Newsstand app how do I find a list of devices that are subscribed?

I can't afford UrbanAirship so I'm trying to program the server side of a Newsstand app myself.
I plan on using the JavaPNS API.
The one thing I can't seem to figure out is how to find a list of users who have a subscription in my app.
Can I query this information from Apple some how?
If I can't then I guess that means that each time a user subscribes they send their device token directly to my server. I hope this is not the case because I was hopping to run the server on my laptop and send out pushes myself without having to keep the laptop running all day listening for new subscribers.
Thanks!
Looks like I do need to register each device with my server: http://www.ibm.com/developerworks/web/library/mo-ios-push/index.html#resources
You kind of found your answer but just in case you really need a server for not only handling the push notification (for telling your app in Newsstand to check the new issue and download it in the background) but also for subscription and in-app purchasing.
Every time you launch the app you should check few things before you refresh the UI. You should check if the user is a subscriber or has user already bought the issue so you can show view/download button instead of Buy button.
Check out these tutorials if they help to understand these communications better but believe me you will end up with one of those services like Urban Airship (Which I think UA is the best option because it handles all in one not just push notification):
http://ios-blog.co.uk/tutorials/how-to-make-a-magazine-app-in-ios-part-i/
this one is more focus on server part:
http://ios-blog.co.uk/tutorials/how-to-make-a-magazine-app-in-ios-part-ii/
http://www.viggiosoft.com/blog/blog/2011/10/17/ios-newsstand-tutorial
http://www.raywenderlich.com/2797/introduction-to-in-app-purchases
And as always this is the best place for start (it has everything you need):
https://developer.apple.com/devcenter/ios/newsstand/
These are some resources to help you in developing app for Newsstand but still there are not enough people out there to share their experience.
Best of luck.
Edit: Add these two links two this list:
http://www.marco.org/2012/10/11/the-magazine
http://www.marco.org/2012/12/12/the-magazine-future-of-publishing

Resources