I am completed my App but i want to add push notification into my application, i installed the SSL certificate and also build the app and get the ipa file...
But i have a doubt that is how the apple pushes the Notification to My Device? How to change the Alert Message from Apple? Where the code written to Customize our Push Notification message? Is it Client side Or server side..?
I suggest reading this carefully first and when you run into problems you ask them here.
Push Notifications programming guide
You need a push notification server in order to be able to send push notes to your application. Push notification server tutorial
Related
we are using Amazon Simple Push Notifications to push the notifications to APNS. We had our app certificate changed around December 2015 and missed out to update in AWS. Thus, the notifications is failed to deliver to user.
We update the certificate in AWS in June 2016 and we had user complaints that he received a lot of notifications. After we troubleshoot, we found that the notifications that user received is the notifications we sent between December 2015 to May 2016 but this should not happening as the notifications should be failed to deliver to user.
We had check with AWS and they mentioned that their services is to deliver the message to APNS and nothing much can do from their end.
Thus, we would like to request for help to troubleshoot for this issue.
There are few questions we would like to ask:
1. How long is the notifications will be cache if it do not able to deliver to user?
2. Is the notifications services have any retry mechanism?
3. Anyway we can reset/kill all notifications that we have sent to APNS?
4. Any possible scenario that the notifications will be keep for half year long?
STEPS TO REPRODUCE
We tried to use the following steps to reproduce the issue but we not able to reproduce the issue.
Revoke the push notifications certificate in app configuration.
Send few notifications.
Update the new push notifications certificate.
Test if the notifications sent after push notification is revoked will be received by user.
I have an app that retrieves data from remote (custom REST API). For this I would like to implement local notification instead of push notification. The aim is to display notifications (iOS and Android) when something is happening from remote (let's say a new offer is available).
So before coding I have some questions:
Could I display data from remote as a local notification?
Do both Android and iOS support this?
What exactly is the difference between local and push notification
You can use local notification on both platforms:
Android: https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.Notification
iOS: https://docs.appcelerator.com/platform/latest/#!/api/Titanium.App.iOS.LocalNotification
To display remote data you need to have it first. Which means you have to make an API call to your server and receive the data. So your app needs to have a background service:
iOS: https://docs.appcelerator.com/platform/latest/#!/guide/iOS_Background_Services
Android: https://github.com/benbahrenburg/benCoding.AlarmManager
Again, both platforms support this.
If you want to implement this as a local notification you should already know what it does :) But since you want to get remote data I would use push notifications because with the background service you need to ask the server all the time if there is something new and then display your notification. With a push notification you could just send out the push to the phones and then show a notification.
There is a great CommonJS module that helps you to implement push on both platforms: https://github.com/HazemKhaled/TiPushNotification
I developed a PHP backend for a mobile app that runs as an Bluemix CF app. I use custom PHP code to send push notifications via APNS. Everything works but the connection to APNS is extremly slow. The same app uses GCM for push Android devices and this works great. Any advice?
It is not uncommon to see a delay in APNs Push Notifications as seen in some of the other posts:
Apple's APNS Delivery is Sometimes Slow
How much delay of ios push notification?
In regards to PHP specifically I also found a post about delay in connection:
Pushing notifications using ApnsPHP is slow
Finally I will share with you a document from Apple showing the architecture of APNs in order to get a better idea of how and where the delay may occur:
Apple Push Service
About a week ago, I began noticing my Android app stopped receiving Parse push notifications, but received just one notification (even if there were more than one) upon app restart.
Since then, I've updated to SDK 1.10.3 (from 1.10.1) and I'm still using PPNS 1.10.1 since 1.10.3 doesn't have a PPNS jar and the Amazon Fire OS doesn't support GCM. However, I'm still experiencing the same issue.
Here is the related logs upon app starting up:
V/PPNSService: Received request to start service if required
D/com.parse.push: successfully subscribed to the broadcast channel.
V/com.parse.PushConnection: PushConnection transitioning from com.parse.PushConnection$WaitStartState#4112f5f8 to com.parse.PushConnection$ConnectState#41150560
V/com.parse.PushConnection: PushConnection transitioning from com.parse.PushConnection$ConnectState#41150560 to com.parse.PushConnection$ConnectedState#419cca40
E/message: {"action":"com.familiair.display.UPDATE_STATUS","old_channel_id":43,"push_hash":"d41d8cd98f00b204e9800998ecf8427e","type":"channel","new_channel_id":44}
The last log line is my app printing out the message of the push notification, so the device is definitely receiving push notifications, just only the first one on app start. I have been manually sending push notifications from the Push dashboard. The fact that I'm still receiving one push notification upon app start means that there's nothing wrong with the push message and that it's targeting the correct device.
The push dashboard says it successfully delivered the push notification. Before this week, all push notifications were being received on my Amazon Fire TV devices.
Any help would be appreciated.
We are developing a Newsstand app, and are currently working on the push notification to let users know a new issue has arrived. From the ambiguous Apple documentation it looks like we will need to send a separate push notification for each user that downloaded the app; each notification should contain a unique device token for each app instance.
The section titled Trust Components seems to imply that you can use the device token or the certificates to authenticate your push notification, but it also implies you need both.
Is it correct that we will need to send out a separate push notification for each installed instance? Can we really not send one push notification and have Apple notify all the users of the app that a new issue has arrived?
Short answer is YES the statement you made is correct.
You have to send out push notification to each device token which must be stored in your server (provider). The preferred way to send multiple notification is to not make multiple connections but reuse one to send multiple notifications. Below is the paragraph from Apple Doc
You should also retain connections with APNs across multiple
notifications. APNs may consider connections that are rapidly and
repeatedly established and torn down as a denial-of-service attack.
Upon error, APNs closes the connection on which the error occurred