Huawei Push Kit Messages is Delayed - huawei-mobile-services

CP is sending push from their server in Singapore using our REST API.
The users of these devices is located in China.
Push messages are delivered only after some delay

HUAWEI Push Kit supports cross-region messaging, but the messaging performance may be affected. To minimize cross-region messaging, it is recommended that you deploy servers in regions where users gather.
Please refer the below link:
https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/android-config-agc-0000001050170137#EN-US_TOPIC_0000001078601380__section3380135485

Related

Azure Notification Hub, Preview capability

Is there a way in Notification hub to preview the push notification on simulators/devices before they are pushed to real user's devices? if not, what approach can be utilized here?
Thanks,
Vineet
At this time a preview feature is not available on Azure Notification hub.You can leave your feedback/ feature request on Uservoice. All of the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.
You can successfully send push notifications to the Android Emulator. You cannot do the same with the iOS Simulator, due to the fact the Simulator just doesn't allow for it.
You can also use a physical device and using a unique tag, or just logging out a registration or installation ID, you could send a notification directly to your own development devices before sending out to real users. This would allow you to validate behavior and appearances before sending to real users. So basically the same process you would use to validate any kind of UI changes before sending an App update out to users. Try on your own devices first.
Hope that helps! :)

Online Push Notification Services

I have developed an app and it is published sucessfully on iOS and Android. I have integrated push using the App42 Push Notification API which works great, but is quite expensive. I am storing the device tokens on my peronal MySQL-database which is hosted on my webpage. I am wondering if there are any other Push Notification Services that supports sending of push notifications using PHP/HTML using device tokens and API keys?
I have researched following:
Parse
OneSignal
PushWoosh
PushWizard
Pushover
None of them seems to support sending of push notifications using PHP or HTML.
Nearly all of them support sending push notifications via a RESTful interface/web-service which needs to be consumed by your PHP.
Parse: https://parse.com/docs/rest/guide/#push-notifications
OneSignal: https://documentation.onesignal.com/reference#create-notification
I am sure few of the others also support sending push notifications via an API.

SSL certificate/ Streaming API on SalesForce

I am developing a hybrid mobile app using Salesforce. I am at a point where I am dealing with Apple's Push Notification Service. In the apple's developer guide it ask that we install the SSL certificate on the provider server
http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ProvisioningDevelopment/ProvisioningDevelopment.html#//apple_ref/doc/uid/TP40008194-CH104-SW6
How can I do that on Salesforce? Is there a tutorial somewhere that I missed. Is it even possible? I also looked into how Saleforce can communicate with the APNS and two option came up. Urban Airship and Streaming APi. Urban Airship cost money (after 1 million notifications?) so I would like to use Streaming API. Any good tutorials on how to use Streaming API?
Starting with the Spring 14 release, Salesforce supports Apple ( APNS ) and Google ( GCM ) mobile push notifications via the Connected Apps framework. Please check the Mobile Push Notifications Tip Sheet on Developer Force for more information: http://www2.developerforce.com/en/mobile/resources
I'm not that familiar with APNs, but from looking at the doc you provided, it says, "streaming TCP socket design for sending push notifications as binary content to APNs." Apex does not provide a way to make raw TCP callouts, so it doesn't sounds like this is going to work. You can set a client cert for HTTP callouts, but that is not going to help here.
If you want to stay in the Salesforce family, you could create a service on Heroku to listen for events from Salesforce and then stream them to APNs over a TCP socket. To get the events from Salesforce to Heroku (or any other external service you choose), you could use the Streaming API, Apex HTTP callouts, or Outbound Messaging.

Understanding details of Apple Push Notification Service

Is it true that we can use any component for our own server component? I mean it can be a Java or C# TCP/IP client which connects with Apple servers to push notifications. This can also be a console application, is that right?
Also, is it right that we have to push notifications for APN server, with each and every deviceTokens registered on our own server?
You can use whatever language you want and you will have to send push notifications for every registered device token. You should also investigate apple's feedback API's which you should periodically check to see which of your devices are no longer registered because sending a push has no feedback and you will not know if it is being received or not. If you use a service such as Urban Airship the setup will be much much easier to start and they have helpful API's to give them a group of device tokens or to do a mass push to all registered device tokens.
You are right on both accounts. You can write your own method to send it, and you must send it to each device id.
framework that might help you:
http://www.easyapns.com/

Is there any SDK available for Iphone so that we can show adds via push notification?

In android we have Air push , using which we can send and show add via push notification. Is there any thing similar we have for iPhone.
Thanks.
Advertising by use of push notifications are explicitly forbidden by Apple: according to section 2.2 of the APN terms and conditions:
You may not use the APN or Local Notifications for the purposes of
advertising, product promotion, or direct marketing of any kind (e.g.
up-selling, cross-selling, etc.), including, but not limited to,
sending any messages to promote the use of Your Application or
advertise the availability of new features or versions.
Technically you can do it by rolling your own push notification server or by signing up with one of the established APN providers, e.g. Urban Airship. But I doubt your App will be approved by Apple if you use it for sending ads.
Yes you can use same Urban Airship for Push Notification for iphone too...