Push Notification to specific users?

8 posts, 0 answers
  1. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 13 May 2013 Link to this post

    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?
  2. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 13 May 2013 Link to this post

    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.
  3. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 14 May 2013 Link to this post

    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?
  4. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 14 May 2013 Link to this post

    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.
  5. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 14 May 2013 Link to this post

    Okay, clear!

    Thank you for your clarification.
  6. Kevin
    Kevin avatar
    47 posts
    Member since:
    Nov 2012

    Posted 14 May 2013 Link to this post

    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
  7. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 15 May 2013 Link to this post

    Okay, all clear now.

    Thank you both very much!
  8. jaswant
    jaswant avatar
    1 posts
    Member since:
    Dec 2015

    Posted 28 Dec 2015 Link to this post

    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
Back to Top