This question is locked. New answers and comments are not allowed.
Hi,
I was just testing notification push registar samples successfully. I was putting some user data (id, mail, displayname) as custom parameters, but I've seen that some fields looks to be defined to store them. It looks obvious while the push notification browser (on the online platform tool) allows to define segments using fields called User.Email, User.DisplayName etc...
So I gave a try to the backend-services-push-hybrid-advanced sample application on github which makes use of the field User.Id to send notification to a specific user.
I noticed nothing particular in this sample during the registration to push notification, and I noticed that no data related to the user are stored at the device level in the platform.
So my question is simple. Is this feature exists or is broken?
I can live with my custom parameters, but maybe you thought about some features and if there are ways to not reinvent the wheel here, it would be nice to know.
My tests was only realized on android platform, if that can change someting.
Best regards,
Franck
I was just testing notification push registar samples successfully. I was putting some user data (id, mail, displayname) as custom parameters, but I've seen that some fields looks to be defined to store them. It looks obvious while the push notification browser (on the online platform tool) allows to define segments using fields called User.Email, User.DisplayName etc...
So I gave a try to the backend-services-push-hybrid-advanced sample application on github which makes use of the field User.Id to send notification to a specific user.
I noticed nothing particular in this sample during the registration to push notification, and I noticed that no data related to the user are stored at the device level in the platform.
So my question is simple. Is this feature exists or is broken?
I can live with my custom parameters, but maybe you thought about some features and if there are ways to not reinvent the wheel here, it would be nice to know.
My tests was only realized on android platform, if that can change someting.
Best regards,
Franck
5 Answers, 1 is accepted
0
Hi Franck,
Thank you for posting to the Telerik Developer Forums.
The "Advanced" push sample is showcasing the ability to associate a device with user Id and filter notifications on parameters in the user registration.
When a device is registered with a user already logged in (e.g. the request is authenticated with the access token of the user), a UserId field is automatically added by the server to the device registration object and can be observed in the Devices browser. That is why the sample requires user registration/authentication.
The server will automatically resole the notification filter based on the UserId stored in the device registration. You can tailor the segment for push notifications based on user properties defined in the Users content type structure (User.ID, User.DisplayName, etc.).
I hope that this answers your question. Let me know if you have further inquiries.
Regards,
Anton Dobrev
Telerik
Thank you for posting to the Telerik Developer Forums.
The "Advanced" push sample is showcasing the ability to associate a device with user Id and filter notifications on parameters in the user registration.
When a device is registered with a user already logged in (e.g. the request is authenticated with the access token of the user), a UserId field is automatically added by the server to the device registration object and can be observed in the Devices browser. That is why the sample requires user registration/authentication.
The server will automatically resole the notification filter based on the UserId stored in the device registration. You can tailor the segment for push notifications based on user properties defined in the Users content type structure (User.ID, User.DisplayName, etc.).
I hope that this answers your question. Let me know if you have further inquiries.
Regards,
Anton Dobrev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
Hong
Top achievements
Rank 1
answered on 23 Jun 2015, 05:07 PM
Hi Admin,
After deploy and run the sample apps, my screen freeze at Initialising push notification for Android....
Could you advice what's the problem?
Thanks
0
Hello Hong,
May I suggest that you take a look into the latest code base here? Just identified and fixed two minor issues.
However, I mostly assume that the device fails to obtain a device token - is there an internet connection available? More troubleshooting tips are available here.
In addition, could you try deploying to a device using the application package (as APK) or the Build and Deploy option?
If the issue could not be fixed, can your provide the code project (no need to include the keys in it)?
Regards,
Anton Dobrev
Telerik
May I suggest that you take a look into the latest code base here? Just identified and fixed two minor issues.
However, I mostly assume that the device fails to obtain a device token - is there an internet connection available? More troubleshooting tips are available here.
In addition, could you try deploying to a device using the application package (as APK) or the Build and Deploy option?
If the issue could not be fixed, can your provide the code project (no need to include the keys in it)?
Regards,
Anton Dobrev
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0
Hong
Top achievements
Rank 1
answered on 26 Jun 2015, 02:24 PM
Hi,
May I check is it because I'm using the trial?
In order to send a notification to a subset of users you will need a Telerik Platform subscription plan that supports "Push to Segment".
Thanks!
0
Hello Hong,
During your Telerik Platform Trial you are entitled with a Business tier subscription and you should be able to use the Push to Segments functionality. The app could also run without the functionality to be included in your subscription - you can just tap the Send button and send message to all users (instead of pushing only to a given user or subset of users that will trigger the Push to Segment functionality).
Did you have the chance to check the recommendations from my previous post?
Regards,
Anton Dobrev
Telerik
During your Telerik Platform Trial you are entitled with a Business tier subscription and you should be able to use the Push to Segments functionality. The app could also run without the functionality to be included in your subscription - you can just tap the Send button and send message to all users (instead of pushing only to a given user or subset of users that will trigger the Push to Segment functionality).
Did you have the chance to check the recommendations from my previous post?
Regards,
Anton Dobrev
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items