Titanium local notification - appcelerator

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

Related

Socket for push notification

For my current web (reactJS) app, i need to implement a push notification system. Backend APIs are written in Python on Django Framework. So how should i implement socket, should I write in python, or may I write in node or node for the client-side and python for the server-side?
Are you looking for Web push or mobile app? The term push is really synonymous with 'push notifications' meaning the client will get them even if the app / website is open or not.
If that is what you are looking for then you need to be looking at service workers and push notification servers.
If you want to simply send alerts to users on your page you can for sure use a simple websocket or long poll done in JS with a node server to emit to.

Push notification from local API in xamarin forms

I am having an API locally hosted in one of the servers (LAN). What I am looking to understand if it is feasible to enable push notification from the server in case of a record entry. Every time a post request is made to the local server, Is it possible to push a notification to a certain mobile device? Please note, I am not considering push notification from web services such as google, Azure, Firebase etc.
It is feasible.
As Sushi said, you can use WebSockets or other Sockets to keep connect between Apps and Server. When client connected to your server, server will record which app is connecting.
By the way, you can custom notification's url between server and app.Use some special characters to distinguish between your various parameters, such as &/[ ]. You are free to set the header and body style of the message. Also, when your message needs to be encrypted, some encryption methods can be used.
Here is a similar discussion about Building an Android notification server can be refer .

Send Raw notification to Windows Phone 8.1 via Parse.com

I need to send different data via push notification to my Windows Phone 8.1 application and handle it into background task. How I can send Raw notification via Parse.com? Is it even possible?
Thanks!
I have been struggling for a very long time with Parse.com and Windows Push Notifications.
I haven't been able to send Raw notifications to Windows Phone so far. Neither I am able to send specific parameters as "sound", for example.
Parse.com simply seems to give no support to those kind of Windows Phone notifications. Only "regular" push notifications with a Title.

Can you not just send one push notification to Apple's Newsstand?

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

How to Use Apple Push Notification?

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

Resources