incorporate user messaging using firebase and swift - ios

So I am trying to find a way to incorporate a messaging feature within an app. I cannot find any up to date information on the web, so I figured I'll ask on this platform. Can someone guide me in the right direction?
I am currently using firebase and swift as building tool for my app. I am looking to build a simple chat/messaging function where users can message each other like instagram, facebook and airbnb allows users to do.

Firebase provides realtime database for chatting feature and many other features where you need data updates in realtime.
You can refer to https://firebase.google.com/docs/database/ios/lists-of-data where it shows you can handle child-added, child-changed event for realtime updates.
You will have to design your database to incorporate chats in it though and then write business logics to handle it through firebase realtime apis.

Related

How to stop tracking in_app_purchase Firebase event on iOS?

Is there are a way to stop tracking in_app_purchase Firebase automatically collected event on iOS?
Unfortunately, it's not possible for now. Just got an answer from Firebase support:
Currently, disabling of in_app_purchase data can only be done on
Android, and not on iOS. Disabling of analytics collection on iOS
includes every analytics data. However, we've added this to our
feature requests list. As of now, we are yet to find out any details
or timelines as to when (or if) it will be implemented. You can check
our release notes from time to time for any updates about Firebase
features and its services.
I created request for adding this feature:
https://github.com/firebase/firebase-ios-sdk/issues/2435
If somebody interested in this feature too, add a comment, please by this link, they will do it faster, will hope.

Which method is OLA & Uber using to get car location while in driving?

I have used the Map control in my iOS application. I have to get the user's car location while the user in driving (Run time update like Ola and Uber Apps).
1). Which method are they using to get the user location while moving (API call, Web socket or any other else)?
2). If are they using API call, How many once (Time interval) will they call API to update the UI?
Share you valuable suggestions. Thank you in advance.
You can do with firebase database . Firebase have realtime database . So when some data is update in firebase in particular node in firebase database , so get realtime data syncing in your app .. just you have to make proper database structure and observing proper node from database is require.
Both Ola and Uber use enterprise Google Maps API, in fact most of the
Geo-location based apps use Google maps API.
Google maps API are available at Google's developer forum. You can
make use of that API for your app and you can get your current cards
which can then be used to show on maps.
Here's the link to add this API in your site/app:
https://developers.google.com/maps/documentation/
Also, you can add multiple features like navigation, street view and
satellite imagery with the help of this:
https://developers.google.com/maps/documentation/embed/
This is used in the most famous game:- Pokemon go.
It's free to a certain limit if you want to try for your own Apps,
after the free limit you need to pay for it.

Google Analytics notifications

I am looking for a way to get notified by an email about critical issues in mobile apps. Currently, Google Analytics (with firebase or itself) is the best solution to suit my tasks: crash reports, usage and custom events tracking. But if there is something critically wrong with an app, can I get notified without logging into GA administration panel?
I was looking for answers in documentation, administration panel, forums. The answers were misleading, because it is not easy to formulate a question and do not get a bunch of articles about remote messaging that google provides.
I was trying to contact google itself, but it is not providing support for free. You need to have adwords or other paid business tools I do not have and need.
Is there a way to solve my tasks in GA scope or I need to integrate other tracking service? Any suggestions?

IOS building real time application

Well i am new to IOS development and want to create a realtime application. In my app i want to update data of tableview cell with real time information like we do with Google Drive shared sheet.
I am not using google drive but its an example. In my app i have a tableview which cell should be updated by realtime data. I have thousands of user groups and any member of group with access to modify can edit that data. So i need to reflect real time change to all other users of particular group.
The data can be anything like image, any formula or anything.
Well for that i have googled and found two options but i am confused which one should i go with.
PubNub library
NSTimer
Well i am not sure which one will be best suited for me. I have tried to create a demo app with PubNub but with heard luck i can't do more.
So can so please suggest me which should i choose or is there any other alternative. I am using Xcode 7.3 with swift 2.3
Thanx in advance.
PubNub is not based on Node, however we have many SDKs for over 70+ different languages/platforms, like Node and Swift. The network is a hosted realtime, data stream network (DSN) that the SDKs connect to allowing your app to send and receive messages in realtime around the world in < 1/4 second to 1 or millions of clients.
For more on this, read How PubNub Works?
You can use PubNub for free for up to 100 daily active devices and up to 1 million messages per month (plenty for a demo app).
You would use the PubNub Swift SDK to subscribe to publish and subscribe to some channel to update your app.
Please check out our Swift SDK docs to get started.

Using Parse and QuickBlox together

Im very new to the backend. Im making a plan to build an iOS Social App that uses Parse for the backend. But since Parse hasn't supported real-time chat feature so I have an idea that uses the Quickblox chat API to build my real-time chat feature. Im not sure whether it is possible or not so I ask here.
Honestly I haven't try anything because I just make my plan. It must be clear before I start so I will build my app faster.
Yes, It's possible.
QuickBlox user model has external_user_id field, you can connect Parse user and QB through this parameter. Or vise-a-versa.
Next, for example, you use Parse user. And you would like to start chat with other Parse user.
You should:
Get QuickBlox user by Parse user.
Login to QuickBlox chat
Send message.
http://quickblox.com/developers/SimpleSample-users-ios#Integrate_QuickBlox_with_your_existing_User_Base
Also, QuickBlox has the same features wich has Parse. I recommend you to review your requirements and maybe you no need to use Parse because in any cases use 2 platforms it will be a bit complicated to support.

Resources