I want to install same push notification certificate in multiple servers. I wonder Is there any limitation for provider(server) count with same certificate?
For example, We have 10 clients who bought our web application server. The server has function that works as push notification provider for iphone users. There is iphone application on App Store that works client of web application. All servers uses same iphone application and same push notification certificate.
You can install the certificate on multiple servers, there's no limitation as far as I know. The only recommendation is that you keep the connection with the Apple server open for as long as possible, and that you refrain to send notifications to devices where your application has been uninstalled. For this, you have to query Apple's feedback service.
Related
I have an app server and several iOS apps that communicate with this app server over the internet. I'm trying to understand if there are any other frameworks, other than Apple Push notifications that allow me to send a message to a specific user of my app while the app is open?
A typical scenario: I type a message at a console on the app server and the message box pops up on a specific device.
One possible approach that I thought of is to periodically poll the server for messages for this particular device. Another approach would be to keep a socket open and stream messages over that socket from the server.
I'm trying to verify that HTTP requests from iOS application were really sent from mobile application. Currently server code just checking 'User-Agent' HTTP header and of course it's not very reliable solution.
Here is how I see current iOS SDK can be used to verify that client is an actual iPhone user.
Push notifications
iOS app requests push token from the operating system and sends it to server
Server sends push notification to application with hidden identifier
iOS app sends received identifier to server
Server responds with cookie
Here on the first stages of communication we can verify that user is mobile user because how else she got identifier from push notification to specific app.
dis. Not quite reliable even if we can repeat push notification. Misuse of push notifications.
In-App purchase
It is possible to reuse receipt verification here.
dis. Obvious misuse. Confusing.
So the question is – are there any proper ways to confirm that request was sent from iOS application, from iOS device ?
iOS11 introduces new API https://developer.apple.com/documentation/devicecheck#overview
It looks like it solves the problem.
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/
I went through the Apple api documentation related to Push notification service in iPhone and all the possible links I found through the google. So I've created the SSL certificate and have got a device token.
But after that, how to use this push notification service in an iPhone application?. Does anyone have any idea about this?
For server/remote push notifications - depends on what you plan to run on your server or if you are going to use a third party service to do it.
Here are some notes if you have your own Rails based server.
You can use thirty push services like PushBots
I want to use Push Notification service for my app ,but I am not sure how to utilize this ,please help
you have a good tutorial for push notifications here explaining the server side implementation details:
http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/
and here explaining the client side details:
http://mobiforge.com/developing/story/programming-apple-push-notification-services
Also here is the link to the Apple developer guide on local and remote push notifications: http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html
Hope this helps.
To send remote push notifications using PHP, I suggest you take a look at the php-apns project on Google Code. I've had good experience with it.
You will have to enable push notifications on iTunes Connect, if you didn't do that already. Your app will have to get the push notifications token from the OS, and deliver it to server. This token may change from one launch to another, so recommended way is to fetch the notification token at launch, and deliver it to the server. Server can then decide when it wants to deliver a notification to which device; at that point, you use php-apns which will connect to Apple's server on port 2195 (make sure you have a hosting which allows that) and, using several certificates you also put on the server, communicate with it.
Make sure the certificates are not downloadable when you upload them on the server.
You cannot test push notifications on the Simulator.