Sending push notifications from Flutter application - dart

We need to send push notifications from our flutter app when certain actions take place. I have looked at Firebase and OneSignal, is there an easier way to accomplish this? Firebase seems difficult to set up and all the examples have you sending notifications from their admin console which is not what we want. I ran the OneSignal example app and it didnt work in my emulator when I sent a test message to myself.

I personally think Firebase is the way to go here. I personally use OneSignal, and they're great for what I want Push Notifications for. However, I don't really think OneSignal would work for you because you would like to use Push Notifications for something a lot more advanced. That's what Firebase is for.

Related

Swift remote push notifications, how do I actually trigger them to be sent?

I am currently working on developing an app in swift 5, Xcode 11, and I am getting towards the end of the initial development. Right now, I am attempting to integrate Remote Push Notifications into the app. I have followed a lot of tutorials online and it works in the sense that I can send the remote notifications through the "Pusher" app, but this is only for testing purposes. I can't seem to find anything about how to actually trigger the notifications through the code, so that, for example, if a user were to receive a message in the app, they would get a push notification. I am not sure if I am just completely missing something, but if anyone can explain to me what exactly I am skimming over in simple terms, I would greatly appreciate it. Thank you.
When we talk about "remote notifications", it means that we have a server that sends us these notifications. As I understand, you want to just show in-app banner that looks like notification. You have 2 options:
Follow these instructions and schedule notifications locally
Use some sort of third party library (e.g. SwiftEntryKit) to create customized in-app notifications.

Apple VOIP Push notification server

So, i'm developing a IOS VOIP app, and find out that i need to use a Push notification server to make my app work on background to receive incoming calls and etc.
I searched and dont find anything about how can i set-up, develop, use, find about, a push notification server/gateway
I found some server who are paid and dont help me on anything, because i can't pay it right now.
I'm sorry to write a question entirely of text, with no code, but there's no code to use right now.
Yes i read the documentation, and articles, and etc, but they just talk about "Setup your server and send a push to apns", nothing useful about what i should use or how can i set-up a server.
Here's what i already found about it:
Mizu VOIP push gateway
How to create a native iOS app that can receive VoIP push notifications
Session Talk push gateway
Mizu VOIP Push notifications
Push notifications docs
In case doesn't exist a non-paid alternative to a push notification server/gateway, is there a workaround to this problem with the newest IOS changes? (I found something like a workaround said by the Zoiper team here)
Thanks in advance!
[EDIT]
The solution was using the Flexisip proxy server.

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

Native Push notification for iOs

I just want to ask if anyone of you know if there is a native push notification code for iOs without using third party libraries (parse, etc.)
yes you can implement push notification using APNS server. You don't need 3ld party services like as parse.
If you want to send notification more then one devices then you have to write Php/Python script and pass your device token into server and save it in database.
For more detail about push notification check this link
I would suggest going through Apple Push Notification Services in iOS 6 Tutorial: Part 1/2 on raywenderlich.com
I did not implement iOS push notifications before, but I will in the near future and this is one of first sources I am going to look into.
Please share how did it go and if you had any issues. Comments below that tutorial could be also very useful.
Thanks,
J

Can I take advantage of Apple's push notification servers for an instant messaging app?

I am trying to create an instant messaging app for iOS devices. Is it possible to send the messages through the same Apple server as push notifications. Also, I was told jabber was a possibility as well. Does anyone know anything about either of these questions and/or know of any tutorials of how to implement either?
Apple's iMessage uses their push notification, so that should indeed work. It obviously won't work on different phones, e.g. Android. iOS limits what you can do in the background, so jabber may not work when in the background. Apple's push notification will work even if your app isn't running.
I'm curious about the same thing. I did look into XMPP (aka Jabber) but couldn't quite figure out how to use an XMPP server and the XMPPFramework only for sending custom info to the device.
For using APNs as the to deliver the messages, there is a very pertinent tutorial on RayWenderlich: http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2.
Part 1 is also useful for learning how to use APNs.
Personally I'm still undecided how I'm going to implement the realtime-ish part of my app, leaning towards using APNs atm.

Resources