Cloudkibo / CloudKibo

CloudKibo
0 stars 0 forks source link

Design to incorporate Microsoft Mobile Services #466

Closed sojharo closed 8 years ago

sojharo commented 8 years ago

This task is for following work:

Microsoft offers a number of Mobil Services. Out focus should be just these two:

Notification Hub Push Notification Service: https://azure.microsoft.com/en-us/documentation/articles/notification-hubs-push-notification-overview/#integration-with-app-service-mobile-apps

Microsoft Mobile Data Sync Service: https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-offline-data-sync/

We would initially use for iOS and Android (KiboChat), but eventually with KiboEngage also.

sojharo commented 8 years ago

I have worked on the design document for Azure Notification Hub. I have covered incoming chat message and incoming file notifications. For incoming call, the work is still in progress. It is little bit complex and I am thinking more on it and also we will discuss the cases in the meeting. Here is the file.

https://docs.google.com/document/d/1x_BeyhOB4C8hUJK3wHutOrY43Lv9pd5WAim6_lFa0dQ/edit#

For Mobile Data Sync, I read three to four documentations on it. It only supports syncing of data if mobile backend is created on Azure Cloud called Mobile Apps. It means that we will have to leave our database (mongodb) and completely use the cloud database of azure. Here is how to create the mobile backend on azure:

https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-android-get-started/

sojharo commented 8 years ago

There is no Mobile Data Sync service from Google. I searched a lot but couldn't find any such service by Google. There was one service called Google Sync (which synced files) but it is now discontinued by Google. However, I found following sync services:

Amazon Cognito

Couchbase

IBM Cloudant

InfoSys TrueSync

sojharo commented 8 years ago

I have finally found the sync service by Google. It was named Realtime Database under Firebase. I am looking into it now.

jekram commented 8 years ago

:-)

sojharo commented 8 years ago

I have added pros and cons in this document too now.

https://docs.google.com/document/d/1NOtR5o59BJbJ7RoKv_YuxEGjz8sjRfXXsC7pAosKvzQ/edit#

sojharo commented 8 years ago

I have added the client documentation in this file now.

https://docs.google.com/document/d/1x_BeyhOB4C8hUJK3wHutOrY43Lv9pd5WAim6_lFa0dQ/edit#

For documentation of Mobile Data Sync, to understand what changes would be required in the current code and how database will be handled on mobile and backend, I started reading their articles. However, from their article I couldn't understand much more about complete flow of sync because they are referring the code chunks from sample project. I need to look at the whole sample project to understand it completely.

This sample project can only be downloaded from Azure portal when you create Mobile App project on Azure cloud, they give us sample code to build on top of it.

Here is the article I have been reading:

https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-android-get-started-offline-data/

There is one more long article that I have not been able to completely read which tells how to add Azure SDK to your node.js server to enable mobile data sync. It seems that if we do this then we won't have to purchase the database instance of Azure. I am not completely sure but I need to read more on this.

https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-node-backend-how-to-use-server-sdk/

For now, I am going to work on other tasks as the tasks of Imran, Zarmeen and Sumaira are stuck because of my these tasks. I would read the above article tomorrow and also play with sample application once we create azure account.

sojharo commented 8 years ago

I have updated the old documentation to reflect new design. I updated in chat documentation and file transfer documentation. Further in this issue, I understood the sample android application code to get picture of how to implement sync feature of azure in our own application. There is one nodejs article which I need to read. After this, I would create design for mobile data sync. The sample application code has given the better understanding.

jekram commented 8 years ago

@sojharo

Thanks

Please provied a link and a full path name to the design document

sojharo commented 8 years ago

Paths :

  1. CloudKibo Shared > CloudKibo > Design File Sharing like Whatsapp
  2. CloudKibo Shared > CloudKibo > Azure Push Notification
  3. https://github.com/Cloudkibo/CloudKibo/blob/master/cloudkibo_documentation/chatstatusdoc.md
sojharo commented 8 years ago

closing this task and opening separate task for azure mobile data sync documentation.

jekram commented 8 years ago

Thanks.