Push notification to IOs or Android from django webapp - django

I have my Django Web app and I want to make a mobile version but it will take me a while, so, I would like to know if it is possible to send push notifications to the mobile phone (either Android, Apple) from the webapp.
The client will run the website normally from the phone and I would like to send a notification when the process made is finished. How can I achieve that ? Do django signals have the effect of push notification ?
Thanks

You can connect QuickBlox to your app and that would be a way to go.
Here's the tutorial for iOS: http://quickblox.com/developers/SimpleSample-messages_users-ios
And this one is for Android: http://quickblox.com/developers/SimpleSample-messages_users-android
Hope that helps.

Related

How are messaging apps like Whatsapp or Messenger built?

I'm trying to build a mobile messaging app like Whatsapp and don't know where to start. In the first place, I don't know how messaging apps send messages between users. What type of protocol do they use? Do they use websockets? Do they use some sort of long polling? I mean what I really want to know is how the server works and is there a name to this sort of communication?
FYI, I was looking to try and build a messaging app with a Django (something like django channels) server and React native for the mobile app.
Thanks for reading.
Yes to create a chat application like messenger or WhatsApp you will need to use websocket, also a cache like redis
If you want to create a chat backend with django and django channels you can follow this repository, this is pretty basic. You can use this repo to build a chat api, which you can use with a mobile app/desktop app as well as a web app
https://github.com/khan-asfi-reza/ChatAPI
This is a minimalistic Chat Api built with django, django rest framework, django channels.
And if you want something more extra like read/seen feature, this following repo will be best
https://github.com/Bearle/django_private_chat2
And for react native app, you can see the following repo, this codebase might be a bit complex for beginners
https://github.com/cometchat-pro/react-native-chat-app.git

Send notifications through DRF

Hello I'm building a RESTfull application using Django Rest Framework.
The clients are android application and react application.
I need to send a time based notification to users.
To send push notifications you can use the well supported https://github.com/jazzband/django-push-notifications app
It is not necessary to use FCM for android. I personally like to use Firebase Cloud Messaging (FCM). If you want to give it a try i suggest to use the pyfcm library https://pypi.org/project/pyfcm/
.
It's pretty straight forward and well documented. As for the authentication problems in the django-rest-framework, please be more specific.

how do I make django and tornado communicate with each other

I have a social networking kinda an app in Django and I wanna integrate real-time notifications and messaging functionality in my app.
my friends could build a tornado app but I wanna basically connect them together (my guess are I have to make a REST API correct me if I'm wrong)
how can I do these kinda tasks from Django
Authenticate automatically to a WebSocket(tornado) as I logged in my
django app
import all of my friends
send tornado signal to send notifications if the user didn't receive a message
things like that
how do I do stuff like that.
(BTW I don't wanna use django channels as it's fairly new)
You can use a message broker library like ZeroMQ or RabbitMQ to help them communicate with each other (The Django instance and the Tornado websockets component).
They provide several message architectures like server-client or publisher-subscriber.

Firebase for Push Notifications only

I want to develop a web application with a database using Django/Grails/Express
I want to use Firebase just for sending Push Notifications to an Iphone. Do i need develop the webapplication (including the database) in firebase or can i develop the web application using Django/Grails/Express and use Firebase just for sending Push Notifications?
Do all web frameworks (Django/Grails/Express) support Firebase? Will Firebase be free to use in my case?
EDIT: How to i use Firebase with Django/Grails/Express? Is there an API or library i need to download?
Thank you in advance!
You can pick and choose which Firebase products you wish to use in your app. You may use as many or as few as you want. There is no obligation to use anything that you don't want to use. There is no charge for using Firebase Cloud Messaging in your app.
In this url https://cloud.google.com/community/tutorials/grails3-send-push-notification-using-firebase-cloud-messaging you can read about the process for sending push notifications using grails as backend

How to open my iOS app from Facebook Messenger?

I am building one of the FB Messenger Bot applications and i want to send my apps customer URL into messenger so that user can tap on it to open the app (The app is already installed on the device). This is app is not in the app store and just a demo for now.
How can i achieve this ? When i am sending customeURL:// as text back to messenger it identifies it as bad URL.
Thanks,
Have you tried adding some text before and after your URL?