Hi my team is implementing IOS MDM. We have Enterprise license. We are able to send payloads and commands to the iOS device.We are receving result from IOS Device.But while send the push notification it is not performing any thing. Even in IPCU log also no issues are showing.
We are using JavaPNS for sending push notification.Almost every thing we implemented in IOS MDM except push notification.
But when i install IOS application and sending push notification using JavaPNS it is showing push notification.
1) is it possible to send push notification for IOS MDM services ?.
2)Can we send push notifications without installing IOS application on the IOS device.
Any advice would be appreciated.
We are able to send payloads and commands to the iOS device.We are
receving result from IOS Device.
How do you send payloads and commands to iOS device? Are you sending them through MDM?
If so, the only way to let device get new commands, profiles from a server is to send "wake up" oush notification through APNS.
But while send the push notification it is not performing any thing.
That's where I got confused. In the case, if it doesn't do anything, device will never contact back a server and it will never receive commands. However, you said that it does.
But when i install IOS application and sending push notification using JavaPNS it is showing push >notification.
I believe this is your problem - confusion with terminology.
MDM protocol doesn't require any iOS application to be installed. iOS operation system has mdm agent built in. As soon as you configured MDM (installed MDM payload) and a device received "wake up" push notification (through APNS) then MDM agent will contact your server and request new commands.
On other hand, you can create some application (which has nothing to do with MDM) and send push notification to it.
The only common thing between this and MDM is push notification transport. However, the push notification message which is send for MDM purposes ("wake-up" message) and to applications ("badges", "sounds" , 'messages") are different.
Please, can you review your question and try to separate out what works and what doesn't.
Related
I'm working a feature which will observe the notification from a server and then do some actions. But the notification won't send immediately when I did some changes in the server. So I want to find a way that can send notification or command from other devices or pc to iOS app to test function immediately?
You can use Easy APN Provider for testing your push notifications.
I'm using Appcelerator's cloud services to send push notifications.
I'm sending notifications from both their web admin console as well as using their REST API. 2 iOS devices successfully subscribed, and i sent them notifications, but the devices never get the notification.
All ceritificate and provisions on Apple's dashboard seems correct. all Appcelerator's cloud responses seem successful, but still the notifications never display on the devices.
Any ideas?
Thanks
I want to send push notification from a iOS device to another iOS device without using backend server. Is it possible for an iOS device to act like a server and send push notification to APNs server?.
Thanks in advance.
Theoretically you can send Apple Push Notifications from a device directly to another device. All you need are the push certificate of the app, the device token of the device you are sending the notification to, and code that establishes a secure TLS connection to the APNS servers.
However, there are several practical problems that make the use of a server almost mandatory :
You need a single place where all the device tokens of all the devices that installed your app will be sent to and persisted in. The best such place would be a server. Without a server, how would device A send its device token to other devices that want to send it push notifications?
Apple require that you keep connections with the APNS server open for as long as possible and use the same connection for sending many notifications. If you open a connection to APNS server on your device, it will probably be short lived (since devices switch networks frequently, and don't stay connected to the internet all the time). Therefore, if you try to send many notifications frequently, and each time use a new connection to APNS, you will probably be banned (since Apple would treat this as DDoS attack).
If you store the push certificate in each device that installs your app (to allow it to send push notifications to other devices directly), aside from the security issue of storing the certificate in many places, you'll have to publish a new version of your app each time the push certificate expires (once a year), and push notifications would stop working for users who don't upgrade to the new version.
Try NWPusher.
It has an iOS framework for sending pushes and has an iOS demo application that sends push notifications from iOS to iOS.
You also need to consider Server costs (other than maintenance and development time if you code your own server).
By sending the push directly from the app device:
- you obtain a much better scalability (since you don't have to centralize everything on your server)
- you don't have to pay for server cost or other service's cost
You can use for iOS:
- https://github.com/noodlewerk/NWPusher Pusher
And for Android:
- Send push notification GCM by java
I'm now responsible for a initial release of an app for iOS and Android. The developer that started the work has left the company and we are left with an incomplete Titanium application to finish.
Once this app is finished we do not plan to continue using Titanium.
We need to add push notifications to this app.
We have enabled Android push notifications using the standard GCM push servers using http://iamyellow.net/post/40100981563/gcm-appcelerator-titanium-module or https://marketplace.appcelerator.com/apps/5165#!overview
Does anyone know of a guide to use APNS that connects directly to the Apple servers and does not require sending the notification payload via ACS?
Thanks
The first step is to get the device token from apple to do this you have to register for Push notifications, you will find it in detail here
The process that follows is saving the token to your database and using it to send Push notifications, this blog explains it best.
Hope it helps.
I am developing an IOS Framework with several functionalities, and I would like to add push notification services. I created my own push notification service using Easy APNS. I do not know how to deal with others apps when They integrated my SDK. I mean, I do not know, if they have to send me their distribution certificates, and I can add them in my push notifications service, or If I need to integrate something in their push notification servie.
I do not know how to deal with a Framework that will work with others app and push notifications.
Yes, If a app supports APNS then it has bundled with APNS enabled service(Push Notification service) certificate.
Assuming that your server is responsible for sending push notifications to all the applications using your SDK, you'll need to get from the developers of those app their push certificates.
I'm assuming that your SDK will handle the sending of the device token from an application to your server. You'll have to know in your server which device token belongs to which application.
For each application for which you wish to send push notifications, you'll have to maintain a separate connection to APNS using the certificate supplied by the developer of that application.