Azure Notification Hub, Preview capability - azure-notificationhub

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! :)

Related

Bluemix Mobile Push Notification Service, how to register by consumerId

When send push notification messages, consumerIds can be specified as target. But when register the device, I don't see where to supply the consumerId in the SDK doc.
Register iOS Devices
Register Android Devices
Can you let me know how to register with the consumerId?
Thanks,
Jen
Currently there is no way to register a consumerId / userId through the Android and iOS SDKs. This is a feature that existed prior but was removed due to security issues when dealing with the public facing REST APIs. It is my understanding that work is being done to reintroduce the functionality but I know nothing more than that.
That said it is possible to recreate the functionality through the REST API (https://mobile.ng.bluemix.net/imfpushrestapidocs/#!/devices/put_apps_applicationId_devices_deviceId)
In short what you would need to do it register the device normally through iOS or Android, then execute the REST GET devices/{deviceId} using the deviceId obtained at the time of registration. From there you could copy off the data, insert your desired consumerId and then execute PUT devices/{deviceId} using that data to update the device registration with the new consumerId.
The answer I posted here goes over that in a little more detail
How to register a userId to Bluemix Push Notifications services?
Again unfortunately it's pretty convuluted to execute at this point while we wait on the native SDKs to reacquire the functionality. In some cases it may be wiser to just create your own mapping of deviceIds to consumerIds and use deviceIds as your push parameter.
Have you check this documentation of the rest API for IBM Push Notification?
https://mobile.ng.bluemix.net/mbaas-api/?cm_mc_uid=70457747682413998998889&cm_mc_sid_50200000=1456154344#!/push/sendMessage_post_21
There's optional parameters for consummerIds and deviceIds.
There's also this more complex API documentation of IBMPushService:
https://mobile.ng.bluemix.net/mbaas-api/docs/JavaScript/IBMPushService.html?cm_mc_uid=70457747682413998998889&cm_mc_sid_50200000=1456154344

Newsstand Notification Server

I am currently working on my first Newsstand app. The basic gist of it is there are two XML feeds. If no subscription is detected, it loads the free.xml which just has a couple of free issues on it. If a subscription receipt is detected and valid, it shows the listing of all current issues. The XML just has title, link, description, and pubDate tags in it. The link is where it is located and the app downloads it and then displays it. My issue is how to send out newsstand notifications. I know it is slightly different than regular Push, in that it has ability to trigger automatic downloads of new issues. I currently use xtify.com for standard push notifications, but I could use some guidance on how to set up notifications for the newsstand app.
To trigger automatic downloads in the Newsstand app, you have to send an extra key-value pair as follows along with other keys. The new key content-available with value 1 is responsible for invoking the application even in the background.
{
"aps":{
"content-available":1,
}
}
If your current push notifications service provider allow you to add this key, its well and good, otherwise you have to use your own server and setup push notifications and add this key to the payload.
In addition to this, make sure:
You enable Newsstand in iTunes Connect
In your Device Settings > Newsstand > Automatic Content Download must be "ON" for your app
Push notifications are "ON" for your app.
For more information on Newsstand applications, following tutorial is very helpful, please go through it. Understanding it answers many of your doubts.
http://www.viggiosoft.com/blog/blog/2011/10/17/ios-newsstand-tutorial/

How to get the latest version information using APS

I am developing one application.In that i want to get the latest version of my app information using Apple Push Notifications.So please tell me how to do this one.I seen in some posts,in that they mension like configure the APNS in apple site and send abinary information to apple service provider.Is it sufficient to get the latest version information.
You will need to create your own server, to store the identifiers for your users. With this, you can then send notifications to users who have allowed notifications from your app.
Doing this can be quite complicated, so you may want to use a service such as Urban Airship who will provide the server, and instructions on how to implement APNS in your app.
With this done, it can be quite simple to send a push notification to your users from their website.

Appcelerator cloud push notification in iOS

I have implement the cloud push notification in iOS using this tutorial iOS push notification tutorial. I have did everything as per the above documentation. No error occur while registration.
In cloud console I can see 1 iOS client clients subscribed to push notifications. Everything seems fine but I cant able to receive the push notification.(even I have restarted my iPhone)
I have sent a push notification from cloud console, but I cant able to receive the push notification in my iPhone. Can anyone help me to solve this issue?
Thanks in Advance
Make sure you have the correct gateway selected on the server side.
The easiest way is to check your mobileprovisioning profile and look for "aps-environment" string. If it is set to "development" you need to use Development (aka Sandbox) gateway. If it is set to "production" you need to use Apple Push Production gateway.
This link might be interesting too:
http://www.pushwoosh.com/programming-push-notification/appcelerator-titanium-push-notification/
There are might be VERY small chance that firewall or router blocking push notifications, but this could be easily detected by switching your device from WiFi to 3G.
It might be an issue with your certificate. You should enable push notifications in the p12 certificate and it should be configured properly in ACS settings. Please refer Appcelerator Cloud Push Notification in iOS

iPhone Push Notification Reliablity

How reliable do you find push notification on the iPhone to be? Does it improve when moving from the sandbox to production server?
I am testing (with the sandbox of course) and have found that notifications are often delayed or not received at all. I am not talking about sending multiple messages and only the last one arriving, as the documentation indicates, but any notification never showing up.
Also, I noticed that if I send a notification with an alert, and then send one with just a badge number, that the second notification will close the alert even after it's already opened. Does this happen between apps as well? For instance, if I send an alert for my app, and then the Facebook app sends a badge, will the Facebook badge close my alert window?
I have no development experience with iPhone apps, but I do know that if you have an unofficial unlocked phone (by using pwnage tool/blackrain etc) then the PUSH notifications might NEVER go through. In fact, it does go through, but to another user's iPhone.
This is because when an iPhone is unofficially network unlocked, it uses the Unique ID of some random individual's iPhone, which causes Push notifications to arrive on either phone (and yes, sometimes also on the unlocked phone it was intended for, but usually not)
Not sure if this is the case with you though, but AFAIK the service is pretty reliable if you follow Apple's rules. :)
The push notification seams better on production. You can always test it using ad-hoc distrbution which uses the production chanel to send the notifications.
I can confirm that production push notifications using
Production Push Notification Certificate
Adhoc Distribution Mobile Provisioning
TestFlight deployment
Production APNS server
works well, no need to publish your app to test production notifications
Production push notifications are not always received. If notifications are machine gunned 1 second apart the first one is received and the rest are not sent, thats my experience.
Where as on a windows phone, they are all received using the windows notification service.