This is a migrated thread and some comments may be shown as answers.

Push Notification to specific users?

7 Answers 376 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jan-Dirk
Top achievements
Rank 1
Jan-Dirk asked on 13 May 2013, 03:12 PM
I want to send push notifications to specific users. Or, maybe send push notifications to all users, but only show them to users who have set a specific setting in the app.

Is that possible with the Push Plugin that is available in Icenium?

7 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 13 May 2013, 03:40 PM
Hi,

 Every time you ask the user to accept push notifications you get a token that's unique to the app instance on the device. You then use this token to send a push notification either through APNS or GCM.

 In essence, a registration token represents a user. Since you hold the tokens on your server, you need to implement the logic that decides who should receive a notification on the server.

Kind regards,
Yavor Georgiev
the Telerik team

Don't miss the Icenium May Release Keynote - sign up now!
Share feedback and vote for features on our Feedback Portal.
0
Jan-Dirk
Top achievements
Rank 1
answered on 14 May 2013, 08:12 AM
Thank you Yavor, that is clear.

Now I have to come up with a way around how I am going to implement this. I have a list with items. For each item the user can set a checkbox if he wants updates for that specific item. I prefer to save that information on his device and not in a database on my server.

Actually I want to send a push notification about a specific product to all users of the app and then check in the app if this user needs to see the notification.

Example:
A notification could look like this: 1231|Message

The app would do a split on the '|' and checks the first result (which is 1231, a product id). Then checks if the user wants an update for the product with id 1231 and if that is true, show the notification on his device and maybe even more details if he opens the device.

Would that be possible?
0
Yavor Georgiev
Telerik team
answered on 14 May 2013, 09:05 AM
Hello,

 It might be possible to do that, but it would be very convoluted, written in Java and only for Android. There isn't a way to stop a notification from appearing on the device if your app is in the background or not running, because systems outside of the app's control handle that. You will have to sync the list of items with the server than sends notifications.

Regards,
Yavor Georgiev
the Telerik team

Don't miss the Icenium May Release Keynote - sign up now!
Share feedback and vote for features on our Feedback Portal.
0
Jan-Dirk
Top achievements
Rank 1
answered on 14 May 2013, 09:45 AM
Okay, clear!

Thank you for your clarification.
0
Kevin
Top achievements
Rank 1
answered on 14 May 2013, 05:45 PM
I know there's no way to do this with iOS for sure. Apple either delivers the notification to your phone or doesn't depending on the settings on your device for if you wish to receive them from that app. You could do some custom logic inside the app for (and only for) when the app is open and a notification comes in, thats all though, if the app is closed or in the background it's 100% apple.

You just need to store it in the server database as apple intends. then you can choose if you want to send it to that person or not based on the settings in the database
0
Jan-Dirk
Top achievements
Rank 1
answered on 15 May 2013, 11:20 AM
Okay, all clear now.

Thank you both very much!
0
jaswant
Top achievements
Rank 1
answered on 28 Dec 2015, 09:25 AM
When you sending push notification then there is a big problem appear that How to identify which user is currently login on the specific device, if more then one user using same device. Here is the details answer:

http://ionicguru.blogspot.in/2015/12/send-push-notification-to-specific-user.html
Tags
General Discussion
Asked by
Jan-Dirk
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Jan-Dirk
Top achievements
Rank 1
Kevin
Top achievements
Rank 1
jaswant
Top achievements
Rank 1
Share this question
or