Function SendPushToTargetUsers not Work and no documentation

0 votes

Hello, 

I use the function SendPushToTargetUsers to send push notification to users using a query to filter.

Recently the function did not sent any push notification.

The function give me a positive response but the message is not sent.

How I can understand why there are this problem ? 

I see that in you SDK documentation THERE IS NOT notice of this function (but some time ago I read about it)

How a can send a push notification to a subset of my users ?

Best regards

asked May 9, 2016 in PHP by odf (37 points)

1 Answer

0 votes
Hi Odf,

Could you please let me know what error message you are getting in push logs? It will help us to provide better support to you.

P.S We would suggest you not to use sendPushToTarget users method because we are going to deprecate this method in our future release.

Regards,

Himanshu Sharma
answered May 10, 2016 by hs00105 (2,005 points) 1 flag
Hello, I do not receive any error, but I the push message is not send to the phones.

If sendPushToTarget  is deprecate which function I can use to send a notification to a list of users using a query or similar ?
Best regards
Hi Odf,

Instead of calling getTopNTargetRankers, you can use Storage service(http://api.shephertz.com/app42-docs/nosql-storage-service/) method from which you can find the list of users. Once you have all the list of users, you can call sendMessageToGroup API(http://api.shephertz.com/app42-docs/push-notification-service/#send-push-message-to-group) which will do the same.

However, if you are not getting any exception then I would suggest you add us as a collaborator on your app and allow us to check the issue for your app.

To add us as a collaborator, please login to AppHQ management console -> Click Collaborator -> Add Collaborator button -> enter demo@shephertz.com email and submit. It will help us to provide better support to you.

Regards,
Himanshu Sharma
Hello,
There is a limit in user group sent to sendMessageToGroup ? I can have thounsand of user in a group.
I try to use channels, I make a program to add user to a channel. After that I have 4 phones registered with the same user (2 android, 1 iphone, 1 windows phone). When I sent the notification I receive it on android and ios but NOT on windows phone.
How I can check the list of devices registered on a channel ?
I DO NOT FIND "Add collaborator" in the apphq console.
Best regards.
Hi Odf,

Sending messages through channel is also a good way. What you can do, for windows users, you can create a different channel and send the message in the below format:

  {"tile":{"title":"Message","count":2,"backgroundImage":"<Your_remote_image_path>","backBackgroundImage":"Your_remote_image_path>","backTitle":"title","backContent":"content"}}
 

You can find the list of users using this function (http://api.shephertz.com/app42-docs/push-notification-service/#get-channel-users) and see the below image for collaborator:

 http://cdn.shephertz.com/repository/files/51d8f716132ec6ab68a580aa3b1e9be42cda7b5835aa0decb0bac30981203346/51bf9c6effb8edb2c6b6bef2a1bf72c794b560d8/Untitled.png

Regards,
Himanshu Sharma
Is difficult for me to create a channel only for windows device, becouse same user can have android and window device registered with the same user.

if I send the message to a my user I receive it on all devices.
If I send the message to the channel (in the test channel only my user is registered) I receive the message only on ios and android.
This is strange.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...