iOS Notifications - is it possible to store them locally? - ios

Is there any way to push notifications without using a web server? I would like to schedule and store the notifications locally, maybe using Core Data. I haven't used the push API before.
I also plan on adding interactive features with iOS 8.
Thanks for your replies!

Use Local Notification
Local Notifications

Related

Xamarin.Android: show notification when app is not running

I plan to extend my Xamarin.Android app (runs only on Android 9 devices) to periodically check a web service for new info and if there's new info, show a notification to the user.
How can I implement this if the polling and the notification shall also happen when the app is not running, e.g. when the device has just started?
Are IntentService and AlarmManager the right places to dig into?
Rather than writing a service in the background which may be killed by the android or having issue with the network reliability and complicated retry logic. It is far better to use the FCM push notification from the server to the devices and show them the information what you want to show.
For more you can check this https://learn.microsoft.com/en-us/xamarin/android/app-fundamentals/notifications/
best way is using push notification services like firebase:
https://firebase.google.com
also for realtime notifications and detect trigger on sql tables in c# you can use SqlTableDependency :
https://www.nuget.org/packages/SqlTableDependency

Is it possible to have a send push notifications locally from the app?

Is it possible to write an app for iOS that is capable of sending local push notifications to user without a remote server?
For example, if I have a 100% local application, can I make it to slow me a notification, let's say, every day at 10PM? Is it possible to have a background service, or schedule a task of some sort locally in iOS?
All of the tutorials I can find online make use of a remote Push API service. Does it mean, there is no way to have this functionality locally?
Yes, it's called local notifications. Read the notifications for developers guide.
You schedule a user notification request using UNNotificationRequest. Provide a UNCalendarNotificationTrigger or UNTimeIntervalNotificationTrigger object as the trigger, depending if your need.
If you need iOS 9 and below support, there is an analogous UILocalNotification API that is deprecated in iOS 10, but can be used in case backward compatibility is needed.

APN push notifications for chat

I'm trying to add notifications to a private chat app that uses Firebase, unfortunately Firebase has an APN service but it must be configured and needs also a server app to manage it. I'd like to have the user notified when someone is texting him while the app is in the background. The problem is that APN (Apple Push Notifications) requires a server with a certificate and that is ok with me, but I'm looking for a way to send push notifications from an iOS device to another device, I mean device-to-device push notifications and the server has just to relay the messages as they are. In my case the APN server should only relay the messages that it receives from a source device to the destination device. I couldn't find a way to obtain that without writing sever code. I want to use pre-built existing services. Has anybody any idea on how to send push notifications from one device to another without configuring and writing server apps? I tried a workaround using the background fetch iOS feature, but the system si randomly giving my app execution time... and that means that my app could wait hours before being started by the system... so that is not a viable solution. Please help
Ok, probably what I found out could be helpful for others. Actually
what I'm looking for can be directly integrated in the app. You need a library like NWPusher (free on GitHub) which can be imported, and with just a few lines of code and the APN device token you get from the system, it is possibile to implement APN notifications... easily, but most importantly... for free.
UPDATE
Check also APNS framework on GitHub. It's written in Swift 3.0 and it supports the latest features.
You are essentially looking for a messaging / chat API to handle device-to-device communication. You might want to try Pusher or PubNub

Has iOS Firebase SDK support to background updates to notify users?

I want to use firebase but on of the features to this is when the application is in background I want to be notified (maybe create a notification) when the data is changed. Is it possible? Firebase supports this?
iOS has some limitations on this topic, but, I want to know if Firebase SDK support this feature or how i can implement this?
For Android, I think i can use a service to keep data updated and notify the users.
Nope. You'll have to roll your own for that.
See:
Best way to implement push notifications with Firebase
Does firebase handle push notifications?
Using Firebase to send and receive push notification for an iOS app
Real-time Push notifications with Firebase
https://www.quora.com/How-do-you-send-a-push-notification-with-Firebase
https://groups.google.com/forum/#!topic/firebase-talk/NcsozbcxEP4
https://groups.google.com/forum/#!topic/firebase-talk/t1MhR_qhohI

ios push notification server reliability

I'm working on app that has realtime components and I'm wondering if I can use apple's push notification service for this.
How many messages can we send? Can we use it for something like a chat service?
If not what are our alternatives?
Apple uses push notifications for their new chat service, so yes, you could use it for a chat service.
There are no good alternatives to push notifications. You'd have to manage your own socket and it would only work while your application is running.

Resources